def METHOD_NAME(self):
    a = ChatInviteLink("link", User(1, "", False), True, True, True)
    b = ChatInviteLink("link", User(1, "", False), True, True, True)
    c = ChatInviteLink("link", User(2, "", False), True, True, True)
    d1 = ChatInviteLink("link", User(1, "", False), False, True, True)
    d2 = ChatInviteLink("link", User(1, "", False), True, False, True)
    d3 = ChatInviteLink("link", User(1, "", False), True, True, False)
    e = ChatInviteLink("notalink", User(1, "", False), True, False, True)
    f = ChatInviteLink("notalink", User(1, "", False), True, True, True)
    g = User(1, "", False)
    assert a == b
    assert hash(a) == hash(b)
    assert a is not b
    assert a != c
    assert hash(a) != hash(c)
    assert a != d1
    assert hash(a) != hash(d1)
    assert a != d2
    assert hash(a) != hash(d2)
    assert d2 != d3
    assert hash(d2) != hash(d3)
    assert a != e
    assert hash(a) != hash(e)
    assert a != f
    assert hash(a) != hash(f)
    assert a != g
    assert hash(a) != hash(g)