Exemplo n.º 1
0
Arquivo: parse.py Projeto: 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")
Exemplo n.º 2
0
    def test03_encode_decode_marshal(self):
        """ test with pickle serializer """

        parser = Parser("marshal")
        pack = parser.encode("hello")
        self.assertEqual(parser.decode(pack), "hello")
Exemplo n.º 3
0
Arquivo: parse.py Projeto: 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")
Exemplo n.º 4
0
 def test01_encode_decode_json(self):
     """ test with json serializer """
     parser = Parser("json")
     pack = parser.encode("hello")
     self.assertEqual(parser.decode(pack), "hello")