'When ``connected()`` is called the reconnect delay on the client
factory is reset.'

def test_connected_resets_factory_delay(self):

    factory = self.service.reconnecting_factory
    factory.delay += 500000
    client = connected_amp_protocol()
    self.service.connected(client)
    self.assertEqual(factory.delay, factory.initialDelay)
