From 5dced6579a48adb4803a053d203b316af79ed74f Mon Sep 17 00:00:00 2001 From: Boaz Shuster Date: Mon, 27 Feb 2017 21:39:38 +0200 Subject: [PATCH] Update assert in test_create_with_restart_policy In https://github.com/docker/docker/pull/30870 a new error message is displayed if the container is restarting. To make "test_create_with_restart_policy" pass against the above change, the test checks that the error message contains "You cannot remove " instead of "You cannot remove a running container" Signed-off-by: Boaz Shuster --- tests/integration/api_container_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/api_container_test.py b/tests/integration/api_container_test.py index 07097ed8..e261ef3d 100644 --- a/tests/integration/api_container_test.py +++ b/tests/integration/api_container_test.py @@ -122,7 +122,7 @@ class CreateContainerTest(BaseAPIIntegrationTest): self.client.remove_container(id) err = exc.exception.explanation self.assertIn( - 'You cannot remove a running container', err + 'You cannot remove ', err ) self.client.remove_container(id, force=True)