def test_equality(self): a = InputContactMessageContent('phone', 'first', last_name='last') b = InputContactMessageContent('phone', 'first_name', vcard='vcard') c = InputContactMessageContent('phone_number', 'first', vcard='vcard') d = User(123, 'first', False) assert a == b assert hash(a) == hash(b) assert a != c assert hash(a) != hash(c) assert a != d assert hash(a) != hash(d)
def test_equality(self): a = InputContactMessageContent("phone", "first", last_name="last") b = InputContactMessageContent("phone", "first_name", vcard="vcard") c = InputContactMessageContent("phone_number", "first", vcard="vcard") d = User(123, "first", False) assert a == b assert hash(a) == hash(b) assert a != c assert hash(a) != hash(c) assert a != d assert hash(a) != hash(d)
def input_contact_message_content(): return InputContactMessageContent( TestInputContactMessageContent.phone_number, TestInputContactMessageContent.first_name, last_name=TestInputContactMessageContent.last_name)