mirror of https://github.com/docker/docker-py.git
Merge pull request #1605 from allencloud/update-test-status-code-from-500-to-400
update docker-py test status code from 500 to 400
This commit is contained in:
commit
2aa63dd9a6
|
@ -168,7 +168,7 @@ class SwarmTest(BaseAPIIntegrationTest):
|
|||
with pytest.raises(docker.errors.APIError) as e:
|
||||
self.client.remove_node(node_id)
|
||||
|
||||
assert e.value.response.status_code == 500
|
||||
assert e.value.response.status_code >= 400
|
||||
|
||||
with pytest.raises(docker.errors.APIError) as e:
|
||||
self.client.remove_node(node_id, True)
|
||||
|
|
Loading…
Reference in New Issue