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