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

Method test_is_client_error_500

tests/unit/errors_test.py:73–78  ·  view source on GitHub ↗

Report not client error on 500 response.

(self)

Source from the content-addressed store, hash-verified

71 assert err.is_server_error() is True
72
73 def test_is_client_error_500(self):
74 """Report not client error on 500 response."""
75 resp = requests.Response()
76 resp.status_code = 500
77 err = APIError('', response=resp)
78 assert err.is_client_error() is False
79
80 def test_is_client_error_400(self):
81 """Report client error on 400 response."""

Callers

nothing calls this directly

Calls 2

is_client_errorMethod · 0.95
APIErrorClass · 0.90

Tested by

no test coverage detected