Fixed TestRestartingContainer

This commit is contained in:
Joffrey F 2015-01-13 10:32:28 -08:00
parent d382482378
commit aa19d7b660
1 changed files with 2 additions and 2 deletions

View File

@ -917,8 +917,8 @@ class TestRestartingContainer(BaseTestCase):
with self.assertRaises(docker.errors.APIError) as exc:
self.client.remove_container(id)
err = exc.exception.response.text
self.assertTrue(
err.startswith('You cannot remove a running container')
self.assertIn(
'You cannot remove a running container', err
)
self.client.remove_container(id, force=True)