Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @defer.inlineCallbacks
- def test_event_retry(self):
- """Testing if the factory reconnects"""
- d = self.failIfNotCalledBeforeTimeout(protocols.AmqpFactory,
- 'retry')
- f = protocols.AmqpFactory()
- c = reactor.connectTCP("localhost", 5672, f)
- f.protocol.transport.loseConnection()
- f.stopTrying()
- yield d
Add Comment
Please, Sign In to add comment