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

Method assert_next

python/tests/proton_tests/interop.py:81–86  ·  view source on GitHub ↗
(self, type, value)

Source from the content-addressed store, hash-verified

79 self.decode_data(body)
80
81 def assert_next(self, type, value):
82 next_type = self.data.next()
83 assert next_type == type, "Type mismatch: %s != %s" % (
84 Data.type_names[next_type], Data.type_names[type])
85 next_value = self.data.get_object()
86 assert next_value == value, "Value mismatch: %s != %s" % (next_value, value)
87
88 def test_message(self):
89 self.decode_message_file("message")

Callers 8

test_messageMethod · 0.95
test_primitivesMethod · 0.95
test_stringsMethod · 0.95
test_describedMethod · 0.95
test_described_arrayMethod · 0.95
test_arraysMethod · 0.95
test_listsMethod · 0.95
test_mapsMethod · 0.95

Calls 2

get_objectMethod · 0.80
nextMethod · 0.45

Tested by 8

test_messageMethod · 0.76
test_primitivesMethod · 0.76
test_stringsMethod · 0.76
test_describedMethod · 0.76
test_described_arrayMethod · 0.76
test_arraysMethod · 0.76
test_listsMethod · 0.76
test_mapsMethod · 0.76