<s> import os <EOL> import sys <EOL> import django <EOL> from django . conf import settings <EOL> DEFAULT_SETTINGS = dict ( <EOL> DEBUG = True , <EOL> USE_TZ = True , <EOL> INSTALLED_APPS = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] , <EOL> MIDDLEWARE_CLASSES = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] , <EOL> DATABASES = { <EOL> "<STR_LIT:default>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } <EOL> } , <EOL> SITE_ID = <NUM_LIT:1> , <EOL> ROOT_URLCONF = "<STR_LIT>" , <EOL> SECRET_KEY = "<STR_LIT>" , <EOL> TEMPLATES = [ <EOL> { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : [ <EOL> ] , <EOL> '<STR_LIT>' : True , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> } , <EOL> } , <EOL> ] <EOL> ) <EOL> def runtests ( * test_args ) : <EOL> if not settings . configured : <EOL> settings . configure ( ** DEFAULT_SETTINGS ) <EOL> django . setup ( ) <EOL> parent = os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> sys . path . insert ( <NUM_LIT:0> , parent ) <EOL> try : <EOL> from django . test . runner import DiscoverRunner <EOL> runner_class = DiscoverRunner <EOL> test_args = [ "<STR_LIT>" ] <EOL> except ImportError : <EOL> from django . test . simple import DjangoTestSuiteRunner <EOL> runner_class = DjangoTestSuiteRunner <EOL> test_args = [ "<STR_LIT>" ] <EOL> failures = runner_class ( verbosity = <NUM_LIT:1> , interactive = True , failfast = False ) . run_tests ( test_args ) <EOL> sys . exit ( failures ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> runtests ( * sys . argv [ <NUM_LIT:1> : ] ) </s>
