def test03_encode_decode_marshal(self): """ test with pickle serializer """ parser = Parser("marshal") pack = parser.encode("hello") self.assertEqual(parser.decode(pack), "hello")
def test01_encode_decode_json(self): """ test with json serializer """ parser = Parser("json") pack = parser.encode("hello") self.assertEqual(parser.decode(pack), "hello")