

def test_that_mgmt_messages_work(self):
    topic = 'me'
    identity = 'myself'
    data = 'and i'
    msg = MgmtMessage([topic, identity, data])
    self.assertEqual(topic, msg.topic)
    self.assertEqual(identity, msg.identity)
    self.assertEqual(data, msg.data)
    self.assertEqual([topic, identity, data], msg.serialize())
    self.assertEqual(msg, MgmtMessage(msg.serialize()))

dataset/ETHPy150Open retresco/Spyder/test/test_messages.py TestMessages.test_that_mgmt_messages_work/original