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

Method test_session_add

python/tests/proton_tests/reactor.py:156–165  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 pass
155
156 def test_session_add(self):
157 c = self.container.connection()
158 s = c.session()
159 s.handler = object()
160 s.handler.add(BarfOnInit())
161 try:
162 self.container.run()
163 assert False, "expected to barf"
164 except Barf:
165 pass
166
167 def test_link_set(self):
168 c = self.container.connection()

Callers

nothing calls this directly

Calls 6

objectClass · 0.85
BarfOnInitClass · 0.85
connectionMethod · 0.45
sessionMethod · 0.45
addMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected