<s> import sys <EOL> try : <EOL> from django . conf import settings <EOL> settings . configure ( <EOL> DEBUG = True , <EOL> USE_TZ = True , <EOL> DATABASES = { <EOL> "<STR_LIT:default>" : { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> } <EOL> } , <EOL> ROOT_URLCONF = "<STR_LIT>" , <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> SITE_ID = <NUM_LIT:1> , <EOL> NOSE_ARGS = [ '<STR_LIT>' ] , <EOL> MIDDLEWARE_CLASSES = [ ] , <EOL> ) <EOL> try : <EOL> import django <EOL> setup = django . setup <EOL> except AttributeError : <EOL> pass <EOL> else : <EOL> setup ( ) <EOL> from django_nose import NoseTestSuiteRunner <EOL> except ImportError : <EOL> import traceback <EOL> traceback . print_exc ( ) <EOL> raise ImportError ( "<STR_LIT>" ) <EOL> def run_tests ( * test_args ) : <EOL> if not test_args : <EOL> test_args = [ '<STR_LIT>' ] <EOL> test_runner = NoseTestSuiteRunner ( verbosity = <NUM_LIT:0> ) <EOL> failures = test_runner . run_tests ( test_args ) <EOL> if failures : <EOL> sys . exit ( failures ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> run_tests ( * sys . argv [ <NUM_LIT:1> : ] ) </s>
