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

Method test_status_code_500

tests/unit/errors_test.py:38–43  ·  view source on GitHub ↗

The status_code property is present with 500 response.

(self)

Source from the content-addressed store, hash-verified

36 assert err.status_code == 400
37
38 def test_status_code_500(self):
39 """The status_code property is present with 500 response."""
40 resp = requests.Response()
41 resp.status_code = 500
42 err = APIError('', response=resp)
43 assert err.status_code == 500
44
45 def test_is_server_error_200(self):
46 """Report not server error on 200 response."""

Callers

nothing calls this directly

Calls 1

APIErrorClass · 0.90

Tested by

no test coverage detected