<s> import os <EOL> import sys <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) ) <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> import django <EOL> from django . conf import settings <EOL> from django . test . utils import get_runner <EOL> def usage ( ) : <EOL> return """<STR_LIT>""" <EOL> def main ( ) : <EOL> TestRunner = get_runner ( settings ) <EOL> import ipdb ; ipdb . set_trace ( ) <EOL> test_runner = TestRunner ( ) <EOL> if len ( sys . argv ) == <NUM_LIT:2> : <EOL> test_case = '<STR_LIT:.>' + sys . argv [ <NUM_LIT:1> ] <EOL> elif len ( sys . argv ) == <NUM_LIT:1> : <EOL> test_case = '<STR_LIT>' <EOL> else : <EOL> print ( usage ( ) ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> test_module_name = '<STR_LIT>' <EOL> if django . VERSION [ <NUM_LIT:0> ] == <NUM_LIT:1> and django . VERSION [ <NUM_LIT:1> ] < <NUM_LIT:6> : <EOL> test_module_name = '<STR_LIT>' <EOL> failures = test_runner . run_tests ( [ test_module_name + test_case ] ) <EOL> sys . exit ( failures ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
