def main(): service.prepare_service() manager.run() return 0
def test_run(self): with mock.patch.object(manager, '_start') as mock_start: manager.run() self.assertTrue(mock_start.called)