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

Method test_is_server_error_500

tests/unit/errors_test.py:66–71  ·  view source on GitHub ↗

Report server error on 500 response.

(self)

Source from the content-addressed store, hash-verified

64 assert err.is_server_error() is False
65
66 def test_is_server_error_500(self):
67 """Report server error on 500 response."""
68 resp = requests.Response()
69 resp.status_code = 500
70 err = APIError('', response=resp)
71 assert err.is_server_error() is True
72
73 def test_is_client_error_500(self):
74 """Report not client 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