MCPcopy Index your code
hub / github.com/docker/docker-py / test_status_code_400

Method test_status_code_400

tests/unit/errors_test.py:31–36  ·  view source on GitHub ↗

The status_code property is present with 400 response.

(self)

Source from the content-addressed store, hash-verified

29 assert err.status_code == 200
30
31 def test_status_code_400(self):
32 """The status_code property is present with 400 response."""
33 resp = requests.Response()
34 resp.status_code = 400
35 err = APIError('', response=resp)
36 assert err.status_code == 400
37
38 def test_status_code_500(self):
39 """The status_code property is present with 500 response."""

Callers

nothing calls this directly

Calls 1

APIErrorClass · 0.90

Tested by

no test coverage detected