def test_noRunning(self):
        """
        AlmostService with no running does not implement IService.
        """
        self.almostService.makeInvalidByDeletingRunning()
        with self.assertRaises(BrokenImplementation):
            verifyObject(IService, self.almostService)

        AlmostService with no running does not implement IService.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/application/test/test_service.py