def test_parse(self):
     msg = ClientMessage()
     res = MessageParser.parse(msg.dumps())
     self.assertIsInstance(res, MessageStatus)
     self.assertEqual(res.status, MessageStatus.STATUS_CLIENT_ERROR)
     self.assertIn('version', res.message)
 def test_finalize(self):
     msg = ClientMessage()
     t = msg.timestamp
     msg.dumps()
     self.assertNotEqual(t, msg.timestamp)