def test_starts_service(self):
        main_for_service(self.reactor, self.service)
        self.assertTrue(
            self.service.running, "The service should have been started.")
``main_for_service`` accepts an ``IService`` provider and starts it.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/test/test_script.py/MainForServiceTests.test_starts_service