MCPcopy Create free account
hub / github.com/apache/qpid-proton / decode_message_file

Method decode_message_file

python/tests/proton_tests/interop.py:74–79  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

72 assert reencoded == encoded, "Value mismatch: %s != %s" % (reencoded, encoded)
73
74 def decode_message_file(self, name):
75 self.message.decode(self.get_data(name))
76 body = self.message.body
77 if str(type(body)) == "<type 'org.apache.qpid.proton.amqp.Binary'>":
78 body = body.array.tostring()
79 self.decode_data(body)
80
81 def assert_next(self, type, value):
82 next_type = self.data.next()

Callers 1

test_messageMethod · 0.95

Calls 5

get_dataMethod · 0.95
decode_dataMethod · 0.95
typeClass · 0.85
strFunction · 0.50
decodeMethod · 0.45

Tested by 1

test_messageMethod · 0.76