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 <ripcurld.github@gmail.com>
This commit is contained in:
Boaz Shuster 2017-02-27 21:39:38 +02:00
parent f387ae46d7
commit 5dced6579a
1 changed files with 1 additions and 1 deletions

View File

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