示例#1
0
文件: parse.py 项目: inkhey/mmc
    def test03_encode_decode_marshal(self):
        """ test with pickle serializer """

        parser = Parser("marshal")
        pack = parser.encode("hello")
        self.assertEqual(parser.decode(pack), "hello")
示例#2
0
文件: parse.py 项目: gnumaniac/pulse
    def test03_encode_decode_marshal(self):
        """ test with pickle serializer """

        parser = Parser("marshal")
        pack = parser.encode("hello")
        self.assertEqual(parser.decode(pack), "hello")
示例#3
0
文件: parse.py 项目: inkhey/mmc
 def test01_encode_decode_json(self):
     """ test with json serializer """
     parser = Parser("json")
     pack = parser.encode("hello")
     self.assertEqual(parser.decode(pack), "hello")
示例#4
0
文件: parse.py 项目: gnumaniac/pulse
 def test01_encode_decode_json(self):
     """ test with json serializer """
     parser = Parser("json")
     pack = parser.encode("hello")
     self.assertEqual(parser.decode(pack), "hello")