<s> from django . conf import settings <EOL> from django . core . management import execute_from_command_line <EOL> import django <EOL> import os <EOL> import sys <EOL> if not settings . configured : <EOL> os . environ . setdefault ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> if django . VERSION >= ( <NUM_LIT:1> , <NUM_LIT:7> ) : <EOL> django . setup ( ) <EOL> module_root = os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> sys . path . insert ( <NUM_LIT:0> , module_root ) <EOL> def runtests ( ) : <EOL> argv = sys . argv [ : <NUM_LIT:1> ] + [ '<STR_LIT:test>' , '<STR_LIT>' ] + sys . argv [ <NUM_LIT:1> : ] <EOL> execute_from_command_line ( argv ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> runtests ( ) </s>
