#NEWLINE# def runtests( ) : #NEWLINE# #INDENT# if ( not settings . configured ) : #NEWLINE# #INDENT# settings . configure ( ** DEFAULT_SETTINGS ) #NEWLINE# #UNINDENT# if hasattr ( django , 'setup' ) : #NEWLINE# #INDENT# django . setup ( ) #NEWLINE# #UNINDENT# print ( sys . path ) #NEWLINE# try : #NEWLINE# #INDENT# from django.test.runner import DiscoverRunner #NEWLINE# runner_class = DiscoverRunner #NEWLINE# test_args = [ 'djangosecure.tests' ] #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# from django.test.simple import DjangoTestSuiteRunner #NEWLINE# runner_class = DjangoTestSuiteRunner #NEWLINE# test_args = [ 'tests' ] #NEWLINE# #UNINDENT# failures = runner_class ( verbosity = 1 , interactive = True , failfast = False ) . run_tests ( test_args ) #NEWLINE# sys . exit ( failures )