#NEWLINE# def run_tests( self ) : #NEWLINE# #INDENT# ' runs all tests ' #NEWLINE# sys . stdout . write ( 'Finding files...\n' ) #NEWLINE# files = self . find_import_files ( ) #NEWLINE# sys . stdout . write ( ( '%s %s\n' % ( self . test_dir , '... done' ) ) ) #NEWLINE# sys . stdout . write ( 'Importing test modules ... ' ) #NEWLINE# modules = self . find_modules_from_files ( files ) #NEWLINE# sys . stdout . write ( 'done.\n' ) #NEWLINE# all_tests = self . find_tests_from_modules ( modules ) #NEWLINE# if ( self . test_filter or self . tests ) : #NEWLINE# #INDENT# if self . test_filter : #NEWLINE# #INDENT# sys . stdout . write ( ( 'Test Filter: %s' % ( [ p . pattern for p in self . test_filter ] , ) ) ) #NEWLINE# #UNINDENT# if self . tests : #NEWLINE# #INDENT# sys . stdout . write ( ( 'Tests to run: %s' % ( self . tests , ) ) ) #NEWLINE# #UNINDENT# all_tests = self . filter_tests ( self ) #NEWLINE# #UNINDENT# sys . stdout . write ( '\n' ) #NEWLINE# runner = unittest . TextTestRunner ( stream = sys . stdout , descriptions = 1 , verbosity = verbosity ) #NEWLINE# runner . run ( unittest . TestSuite ( all_tests ) ) #NEWLINE# return