#NEWLINE# def run_tests( self , test_labels , * args ) : #NEWLINE# #INDENT# nose_argv = ( [ 'nosetests' ] + list ( test_labels ) ) #NEWLINE# if args : #NEWLINE# #INDENT# nose_argv . extend ( args ) #NEWLINE# #UNINDENT# if hasattr ( settings , 'NOSE_ARGS' ) : #NEWLINE# #INDENT# nose_argv . extend ( settings . NOSE_ARGS ) #NEWLINE# #UNINDENT# django_opts = [ '--noinput' , '--liveserver' , '-p' , '--pattern' ] #NEWLINE# for opt in BaseCommand . option_list : #NEWLINE# #INDENT# django_opts . extend ( opt . _long_opts ) #NEWLINE# django_opts . extend ( opt . _short_opts ) #NEWLINE# #UNINDENT# nose_argv . extend ( ( translate_option ( opt ) for opt in sys . argv [ 1 : ] if ( opt . startswith ( '-' ) and ( not any ( ( opt . startswith ( d ) for d in self ) ) ) ) ) ) #NEWLINE# if ( ( '--verbosity' not in nose_argv ) and ( not any ( ( opt . startswith ( '--verbosity=' ) for opt in nose_argv ) ) ) ) : #NEWLINE# #INDENT# nose_argv . append ( ( '--verbosity=%s' % str ( self . verbosity ) ) ) #NEWLINE# #UNINDENT# if ( self . verbosity >= 1 ) : #NEWLINE# #INDENT# print ( ' ' . join ( nose_argv ) ) #NEWLINE# #UNINDENT# result = self . run_suite ( nose_argv ) #NEWLINE# return self . suite_result ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , result )