def METHOD_NAME(self, first_inst, second_inst):
    """
    自定义断言：用于判断两个对象的属性值是否相等
    """
    if not (
        first_inst.set_name == second_inst.set_name
        and first_inst.set_id == second_inst.set_id
        and first_inst.module_name == second_inst.module_name
        and first_inst.module_id == second_inst.module_id
        and first_inst.flat__module_id == second_inst.flat__module_id
        and first_inst.flat__module_name == second_inst.flat__module_name
    ):
        msg = self._formatMessage("%s == %s" % (safe_repr(first_inst), safe_repr(second_inst)))
        raise self.failureException(msg)