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: 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)