(self)
| 2375 | return snd, rcv |
| 2376 | |
| 2377 | def testDeliveryEvents(self): |
| 2378 | snd, rcv = self.link("test-link") |
| 2379 | rcv.session.connection.collect(self.collector) |
| 2380 | rcv.open() |
| 2381 | rcv.flow(10) |
| 2382 | self.pump() |
| 2383 | self.expect(Event.CONNECTION_INIT, Event.SESSION_INIT, |
| 2384 | Event.LINK_INIT, Event.LINK_LOCAL_OPEN, Event.TRANSPORT) |
| 2385 | snd.delivery("delivery") |
| 2386 | snd.send(str2bin("Hello World!")) |
| 2387 | snd.advance() |
| 2388 | self.pump() |
| 2389 | self.expect() |
| 2390 | snd.open() |
| 2391 | self.pump() |
| 2392 | self.expect(Event.LINK_REMOTE_OPEN, Event.DELIVERY) |
| 2393 | rcv.session.connection.transport.unbind() |
| 2394 | rcv.session.connection.free() |
| 2395 | self.expect(Event.CONNECTION_UNBOUND, Event.TRANSPORT, Event.LINK_FINAL, |
| 2396 | Event.SESSION_FINAL, Event.CONNECTION_FINAL) |
| 2397 | |
| 2398 | def testDeliveryEventsDisp(self): |
| 2399 | snd, rcv = self.testFlowEvents() |
nothing calls this directly
no test coverage detected