#NEWLINE# def assertResponseEqual( self , expected , actual ) : #NEWLINE# #INDENT# for ( k , v ) in expected . iteritems ( ) : #NEWLINE# #INDENT# if ( isinstance ( v , datetime . datetime ) or isinstance ( actual [ k ] , datetime . datetime ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if isinstance ( v , list ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if isinstance ( v , dict ) : #NEWLINE# #INDENT# self . assertResponseEqual ( v , self [ k ] ) #NEWLINE# continue #NEWLINE# #UNINDENT# self . assertEqual ( v , actual [ k ] , '{} not equal (expected: {}, actual: {}).' . format ( k , v , actual [ k ] ) )