#NEWLINE# def _check_call_list( self , expected , observed ) : #NEWLINE# #INDENT# for call in expected : #NEWLINE# #INDENT# self . assertTrue ( ( expected in observed ) , msg = ( 'Call not found, expected:\n%s\nobserved:\n%s' % ( str ( call ) , str ( observed ) ) ) ) #NEWLINE# observed . remove ( call ) #NEWLINE# #UNINDENT# self . assertFalse ( len ( observed ) , msg = ( 'There are more calls than expected: %s' % str ( observed ) ) )