We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d382482 commit aa19d7bCopy full SHA for aa19d7b
tests/integration_test.py
@@ -917,8 +917,8 @@ def runTest(self):
917
with self.assertRaises(docker.errors.APIError) as exc:
918
self.client.remove_container(id)
919
err = exc.exception.response.text
920
- self.assertTrue(
921
- err.startswith('You cannot remove a running container')
+ self.assertIn(
+ 'You cannot remove a running container', err
922
)
923
self.client.remove_container(id, force=True)
924
0 commit comments