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

Method test_is_server_error_400

tests/unit/errors_test.py:59–64  ·  view source on GitHub ↗

Report not server error on 400 response.

(self)

Source from the content-addressed store, hash-verified

57 assert err.is_server_error() is False
58
59 def test_is_server_error_400(self):
60 """Report not server error on 400 response."""
61 resp = requests.Response()
62 resp.status_code = 400
63 err = APIError('', response=resp)
64 assert err.is_server_error() is False
65
66 def test_is_server_error_500(self):
67 """Report server error on 500 response."""

Callers

nothing calls this directly

Calls 2

is_server_errorMethod · 0.95
APIErrorClass · 0.90

Tested by

no test coverage detected