'L{StreamServerEndpointService.stopService} cancels the L{Deferred}
returned by C{listen} if it has not yet fired.  No error will be logged
about the cancellation of the listen attempt.'

def test_stopServiceBeforeStartFinished(self):

    self.svc.privilegedStartService()
    result = self.svc.stopService()
    l = []
    result.addBoth(l.append)
    self.assertEqual(l, [None])
    self.assertEqual(self.flushLoggedErrors(CancelledError), [])
