#NEWLINE# def main( argv = None ) : #NEWLINE# #INDENT# '\n    Does the equivalent of "django-admin.py test acacia" after doing some basic\n    configuration. Caller can also pass in the names of particular TestCase or\n    test method to run, as per the normal unittest calling style. In that case,\n    those tests are run, instead of the full suite.\n    ' #NEWLINE# if ( argv is None ) : #NEWLINE# #INDENT# argv = sys . argv #NEWLINE# #UNINDENT# if ( len ( argv ) == 1 ) : #NEWLINE# #INDENT# args = [ argv [ 0 ] , 'test' , 'acacia' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args = ( [ name [ 0 ] , 'test' ] + argv [ 1 : ] ) #NEWLINE# #UNINDENT# pkg_dir = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , '..' ) ) #NEWLINE# sys . path . insert ( 0 , pkg_dir ) #NEWLINE# options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for name in dir ( test_settings ) : #NEWLINE# #INDENT# if ( name == name . upper ( ) ) : #NEWLINE# #INDENT# options [ name ] = getattr ( test_settings , name ) #NEWLINE# #UNINDENT# #UNINDENT# settings . configure ( ** options ) #NEWLINE# controller = management . ManagementUtility ( args ) #NEWLINE# controller . execute ( )