#NEWLINE# def _assertEqualListsOfObjects( self , objs1 , objs2 , ignored_keys = None ) : #NEWLINE# #INDENT# obj_to_dict = ( lambda o : self . _dict_from_object ( o , ignored_keys ) ) #NEWLINE# sort_key = ( lambda d : [ d [ k ] for k in sorted ( d ) ] ) #NEWLINE# conv_and_sort = ( lambda obj : sorted ( map ( obj_to_dict , obj ) , key = sort_key ) ) #NEWLINE# self . assertEqual ( conv_and_sort ( sort_key ) , conv_and_sort ( objs2 ) )