def test_PUBCOMP_encdec(self): request = PUBCOMP() response = PUBCOMP() request.msgId = 30002 response.decode(request.encode()) self.assertEqual(request.msgId, response.msgId)