def test_clientConnected(self):
     reset = self.patch_reconnector('resetDelay')
     s = ReconnectingClientService(object(), object())
     p = object()
     s.clientConnected(p)
     self.assertIdentical(s._protocol, p)
     reset.assertCalledOnce()
 def test_clientConnected(self):
     reset = self.patch_reconnector('resetDelay')
     s = ReconnectingClientService(object(), object())
     p = object()
     s.clientConnected(p)
     self.assertIdentical(s._protocol, p)
     reset.assertCalledOnce()
Example #3
0
 def clientConnected(self, protocol):
     self.protocol_instance = protocol
     ReconnectingClientService.clientConnected(self, protocol)
     d = self.connect_d
     self.connect_d = Deferred()
     self._process_queue()
     d.callback(protocol)