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

Class CustomValue

python/tests/proton_tests/engine.py:2300–2314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2298
2299
2300class CustomValue:
2301 def __init__(self, data):
2302 self.data = data
2303
2304 def apply(self, dlv):
2305 dlv.data = self.data
2306
2307 def check(self, dlv):
2308 assert dlv.data == self.data, (dlv.data, self.data)
2309 assert dlv.section_number == 0
2310 assert dlv.section_offset == 0
2311 assert dlv.condition is None
2312 assert dlv.failed is False
2313 assert dlv.undeliverable is False
2314 assert dlv.annotations is None
2315
2316
2317class DeliveryTest(Test):

Callers 2

testCustomMethod · 0.85
testNullCustomMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected