def basics_match(original_result, modified_result):
 return all(((getattr(original_result, member) == getattr(modified_result, member)) for member in ['origin', 'message', 'severity', 'debug_msg']))

def basics_match ( original_result , modified_result ) : return all ( ( ( getattr ( original_result , member ) == getattr ( modified_result , member ) ) for member in [ 'origin' , 'message' , 'severity' , 'debug_msg' ] ) )
checks whether the following properties of two results match: * origin * message * severity * debug_msg .