def METHOD_NAME(self, result, obj1, obj2):
    if result:
        assert obj1 == obj2
        assert obj2 == obj1
        assert not (obj1 != obj2)
        assert not (obj2 != obj1)
    else:
        assert obj1 != obj2
        assert obj2 != obj1
        assert not (obj1 == obj2)
        assert not (obj2 == obj1)