mirror of https://github.com/docker/docker-py.git
Fixed TestRestartingContainer
This commit is contained in:
parent
d382482378
commit
aa19d7b660
|
@ -917,8 +917,8 @@ class TestRestartingContainer(BaseTestCase):
|
||||||
with self.assertRaises(docker.errors.APIError) as exc:
|
with self.assertRaises(docker.errors.APIError) as exc:
|
||||||
self.client.remove_container(id)
|
self.client.remove_container(id)
|
||||||
err = exc.exception.response.text
|
err = exc.exception.response.text
|
||||||
self.assertTrue(
|
self.assertIn(
|
||||||
err.startswith('You cannot remove a running container')
|
'You cannot remove a running container', err
|
||||||
)
|
)
|
||||||
self.client.remove_container(id, force=True)
|
self.client.remove_container(id, force=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue