'When the service is stopped, no further connect attempts are made.  The
returned L{Deferred} fires when all outstanding connections have been
stopped.'

def test_stopServiceWhileConnected(self):

    (cq, service) = self.makeReconnector()
    d = service.stopService()
    self.assertNoResult(d)
    protocol = cq.constructedProtocols[0]
    self.assertEqual(protocol.transport.disconnecting, True)
    protocol.connectionLost(Failure(Exception()))
    self.successResultOf(d)
