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

Method test_is_client_error_400

tests/unit/errors_test.py:80–85  ·  view source on GitHub ↗

Report client error on 400 response.

(self)

Source from the content-addressed store, hash-verified

78 assert err.is_client_error() is False
79
80 def test_is_client_error_400(self):
81 """Report client error on 400 response."""
82 resp = requests.Response()
83 resp.status_code = 400
84 err = APIError('', response=resp)
85 assert err.is_client_error() is True
86
87 def test_is_error_300(self):
88 """Report no error on 300 response."""

Callers

nothing calls this directly

Calls 2

is_client_errorMethod · 0.95
APIErrorClass · 0.90

Tested by

no test coverage detected