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

Method testLinkDetach

python/tests/proton_tests/engine.py:2635–2655  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2633 Event.TRANSPORT_HEAD_CLOSED, Event.TRANSPORT_CLOSED)
2634
2635 def testLinkDetach(self):
2636 c1 = Connection()
2637 c1.collect(self.collector)
2638 t1 = Transport()
2639 t1.bind(c1)
2640 c1.open()
2641 s1 = c1.session()
2642 s1.open()
2643 l1 = s1.sender("asdf")
2644 l1.open()
2645 l1.detach()
2646 self.expect_until(Event.LINK_LOCAL_DETACH, Event.TRANSPORT)
2647
2648 c2 = Connection()
2649 c2.collect(self.collector)
2650 t2 = Transport()
2651 t2.bind(c2)
2652
2653 pump(t1, t2)
2654
2655 self.expect_until(Event.LINK_REMOTE_DETACH)
2656
2657
2658class PeerTest(CollectorTest):

Callers

nothing calls this directly

Calls 11

collectMethod · 0.95
bindMethod · 0.95
openMethod · 0.95
sessionMethod · 0.95
ConnectionClass · 0.90
TransportClass · 0.90
expect_untilMethod · 0.80
pumpFunction · 0.70
openMethod · 0.45
senderMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected