def test_msgpack(self): data = OrderedDict([ ("foo", 1), ("bar", 2), ("baz", True), ]) serialized = msgpack.serialize(data) deserialized = msgpack.deserialize(serialized) assert deserialized == data, deserialized
def test_msgpack(self): data = OrderedDict([ ("foo", 1), ("bar", 2), ("baz", True), ]) serialized = msgpack.serialize(data) deserialized = msgpack.deserialize(serialized) assert deserialized == data, deserialized