示例#1
0
 def setUp(self):
     self.pb_serialize = lambda *args, **kw: \
         serializes(ProtobufSerializeProvider(), *args, **kw)
     self.pb_deserialize = lambda *args, **kw: \
         deserializes(ProtobufSerializeProvider(), *args, **kw)
     self.json_serialize = lambda *args, **kw: \
         serializes(JsonSerializeProvider(), *args, **kw)
     self.json_deserialize = lambda *args, **kw: \
         deserializes(JsonSerializeProvider(), *args, **kw)
示例#2
0
文件: core.py 项目: edgar87/mars
    def setUp(self):
        from mars.serialize import serializes, deserializes, \
            ProtobufSerializeProvider, JsonSerializeProvider

        self.pb_serialize = lambda *args, **kw: \
            serializes(ProtobufSerializeProvider(), *args, **kw)
        self.pb_deserialize = lambda *args, **kw: \
            deserializes(ProtobufSerializeProvider(), *args, **kw)
        self.json_serialize = lambda *args, **kw: \
            serializes(JsonSerializeProvider(), *args, **kw)
        self.json_deserialize = lambda *args, **kw: \
            deserializes(JsonSerializeProvider(), *args, **kw)
示例#3
0
文件: test_core.py 项目: zwz1437/mars
 def setUp(self):
     self.attrs = dict()
     self.j = JsonSerializeProvider()
     self.p = ProtobufSerializeProvider()