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