#NEWLINE# def increment_counts( test , results ) : #NEWLINE# #INDENT# test_values = { #NEWLINE# #INDENT# 'run_count' : ( test . run_count + 1 ) , #NEWLINE# #UNINDENT# } #NEWLINE# status = results . get ( 'status' ) #NEWLINE# if ( status == 'success' ) : #NEWLINE# #INDENT# test_values [ 'success' ] = ( test . success + 1 ) #NEWLINE# test_values = running_avg ( test , test_values , results ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( results == 'fail' ) : #NEWLINE# #INDENT# test_values [ 'failure' ] = ( test . failure + 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( status == 'skip' ) : #NEWLINE# #INDENT# test_values = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = ( 'Unknown test status %s' % status ) #NEWLINE# raise exceptions . UnknownStatus ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return test_values