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

Method test_is_error_300

tests/unit/errors_test.py:87–92  ·  view source on GitHub ↗

Report no error on 300 response.

(self)

Source from the content-addressed store, hash-verified

85 assert err.is_client_error() is True
86
87 def test_is_error_300(self):
88 """Report no error on 300 response."""
89 resp = requests.Response()
90 resp.status_code = 300
91 err = APIError('', response=resp)
92 assert err.is_error() is False
93
94 def test_is_error_400(self):
95 """Report error on 400 response."""

Callers

nothing calls this directly

Calls 2

is_errorMethod · 0.95
APIErrorClass · 0.90

Tested by

no test coverage detected