

def test_equality(self):
    m1 = ConnectMessage(self.version, support=self.support, session='a')
    m2 = ConnectMessage(self.version, support=self.support, session='a')
    m3 = ConnectMessage(self.version, support=self.support, session='b')
    self.assertEqual(m1, m1)
    self.assertEqual(m1, m2)
    self.assertNotEqual(m1, m3)
    self.assertNotEqual(m1, object())

dataset/ETHPy150Open foxdog-studios/pyddp/tests/messages/client/test_connect_message.py ConnectMessageTestCase.test_equality/original