#NEWLINE# def print_summary( test_list , result_list , test_time , output_file = None ) : #NEWLINE# #INDENT# for test in test_list : #NEWLINE# #INDENT# test . print_perf_info ( result_list , output_file = test_time ) #NEWLINE# #UNINDENT# Test . print_results ( result_list , output_file = output_file ) #NEWLINE# print ( '' , file = output_file ) #NEWLINE# print ( ( 'Test Time: %s' % test_time ) , file = output_file ) #NEWLINE# if Test . all_tests_pass ( result_list ) : #NEWLINE# #INDENT# print ( 'All tests passed' , file = output_file ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'One or more tests has failed!' , file = output_file )