コード例 #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")