Esempio n. 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)
Esempio n. 2
0
File: core.py Progetto: 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)
Esempio n. 3
0
 def setUp(self):
     self.attrs = dict()
     self.j = JsonSerializeProvider()
     self.p = ProtobufSerializeProvider()