

def test_that_data_messages_work(self):
    identity = 'me myself and i'
    curi = CrawlUri(url='http://localhost')
    serialized = serialize_crawl_uri(curi)
    msg = DataMessage([identity, serialized])
    self.assertEqual(identity, msg.identity)
    self.assertEqual(curi, msg.curi)
    self.assertEqual([identity, serialized], msg.serialize())
    self.assertEqual(msg, DataMessage(msg.serialize()))

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