'L{StreamServerEndpointService.stopService} cancels the L{Deferred}
returned by C{listen} if it has not fired yet.  An error will be logged
if the resulting exception is not L{CancelledError}.'

def test_stopServiceCancelStartError(self):

    self.fakeServer.cancelException = ZeroDivisionError()
    self.svc.privilegedStartService()
    result = self.svc.stopService()
    l = []
    result.addCallback(l.append)
    self.assertEqual(l, [None])
    stoppingErrors = self.flushLoggedErrors(ZeroDivisionError)
    self.assertEqual(len(stoppingErrors), 1)
