Пример #1
0
 def test_raw_is_transparent(self):
     data = {'foo': 42}
     raw_data = msgpack_serializer.dumps(data)
     packed = msgpack_serializer.dumps([raw_embed(raw_data)])
     self.assertEqual(msgpack_serializer.loads(packed), [data])
Пример #2
0
 def test_raw_is_transparent(self):
     data = {'foo': 42}
     raw_data = msgpack_serializer.dumps(data)
     packed = msgpack_serializer.dumps([raw_embed(raw_data)])
     self.assertEqual(msgpack_serializer.loads(packed), [data])
Пример #3
0
 def packed_headers(self):
     if self._packed_headers is None:
         self._packed_headers = msgpack_serializer.dumps(self._headers)
     return self._packed_headers
Пример #4
0
 def packed_body(self):
     if self._packed_body is None:
         self._packed_body = msgpack_serializer.dumps(self._body)
     return self._packed_body
Пример #5
0
 def packed_headers(self):
     if self._packed_headers is None:
         self._packed_headers = msgpack_serializer.dumps(self._headers)
     return self._packed_headers
Пример #6
0
 def packed_body(self):
     if self._packed_body is None:
         self._packed_body = msgpack_serializer.dumps(self._body)
     return self._packed_body