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

Method _test

python/tests/proton_tests/message.py:40–46  ·  view source on GitHub ↗
(self, name, default, values)

Source from the content-addressed store, hash-verified

38class AccessorsTest(Test):
39
40 def _test(self, name, default, values):
41 d = getattr(self.msg, name)
42 assert d == default, (d, default)
43 for v in values:
44 setattr(self.msg, name, v)
45 gotten = getattr(self.msg, name)
46 assert gotten == v, gotten
47
48 def _test_symbol(self, name):
49 self._test(name, symbol(None), (symbol(u"abc.123.#$%"), symbol(u"hello.world")))

Callers 12

_test_symbolMethod · 0.95
_test_strMethod · 0.95
_test_timeMethod · 0.95
testIdMethod · 0.95
testCorrelationIdMethod · 0.95
testDurableMethod · 0.95
testPriorityMethod · 0.95
testTtlMethod · 0.95
testFirstAcquirerMethod · 0.95
testDeliveryCountMethod · 0.95
testUserIdMethod · 0.95
testGroupSequenceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected