'The ``Deferred`` returned by ``main_for_service`` does not fire before
the ``Deferred`` returned by the service\'s ``stopService`` method
fires.'

def test_wait_for_service_stop(self):

    result = main_for_service(self.reactor, AsyncStopService(Deferred()))
    self._shutdown_reactor(self.reactor)
    self.assertNoResult(result)
