def test_is_manager_returns_false_if_pull_error(self, *args):
with mock.patch.object(fabricio, 'run') as run:
service = docker.Service(name='service')
service.pull_errors[fab.env.host] = True
self.assertFalse(service.is_manager())
run.assert_not_called()
评论列表
文章目录