#NEWLINE# def _lookup_request( self , request ) : #NEWLINE# #INDENT# url = request . get_url ( ) #NEWLINE# for record in self . records : #NEWLINE# #INDENT# other_url = record . request . get_url ( ) #NEWLINE# if ( ( record . request . get_method ( ) == request . get_method ( ) ) and ( url == other_url ) and ( record . request . post_body == request . post_body ) ) : #NEWLINE# #INDENT# return record . response #NEWLINE# #UNINDENT# #UNINDENT# return self . default_response