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