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)
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)
def setUp(self): self.attrs = dict() self.j = JsonSerializeProvider() self.p = ProtobufSerializeProvider()