<s> import os <EOL> import sys <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> test_dir = os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) <EOL> sys . path . insert ( <NUM_LIT:0> , test_dir ) <EOL> import django <EOL> from django . test . utils import get_runner <EOL> from django . conf import settings <EOL> def runtests ( ) : <EOL> TestRunner = get_runner ( settings ) <EOL> test_runner = TestRunner ( verbosity = <NUM_LIT:1> , interactive = True ) <EOL> if hasattr ( django , '<STR_LIT>' ) : <EOL> django . setup ( ) <EOL> failures = test_runner . run_tests ( [ '<STR_LIT>' ] ) <EOL> sys . exit ( bool ( failures ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> runtests ( ) </s>
