#NEWLINE# def _match_dicts( expected , topic ) : #NEWLINE# #INDENT# 'Asserts the "like"-ness of all keys and values in `topic` and `expected`.' #NEWLINE# for ( k , v ) in expected . items ( ) : #NEWLINE# #INDENT# if ( ( not ( v in topic ) ) or ( not _match_alike ( topic [ k ] , v ) ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True