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

Method test_is_server_error_200

tests/unit/errors_test.py:45–50  ·  view source on GitHub ↗

Report not server error on 200 response.

(self)

Source from the content-addressed store, hash-verified

43 assert err.status_code == 500
44
45 def test_is_server_error_200(self):
46 """Report not server error on 200 response."""
47 resp = requests.Response()
48 resp.status_code = 200
49 err = APIError('', response=resp)
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."""

Callers

nothing calls this directly

Calls 2

is_server_errorMethod · 0.95
APIErrorClass · 0.90

Tested by

no test coverage detected