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

Method test_is_server_error_300

tests/unit/errors_test.py:52–57  ·  view source on GitHub ↗

Report not server error on 300 response.

(self)

Source from the content-addressed store, hash-verified

50 assert err.is_server_error() is False
51
52 def test_is_server_error_300(self):
53 """Report not server error on 300 response."""
54 resp = requests.Response()
55 resp.status_code = 300
56 err = APIError('', response=resp)
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."""

Callers

nothing calls this directly

Calls 2

is_server_errorMethod · 0.95
APIErrorClass · 0.90

Tested by

no test coverage detected