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