'When the service is stopped while initially connecting, the connection
attempt is cancelled.'

def test_stopServiceWhileConnecting(self):

    clock = Clock()
    (cq, service) = self.makeReconnector(fireImmediately=False, clock=clock)
    self.assertEqual(len(cq.connectQueue), 1)
    self.assertNoResult(cq.connectQueue[0])
    d = service.stopService()
    self.successResultOf(d)
