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

Method test_is_error_500

tests/unit/errors_test.py:101–106  ·  view source on GitHub ↗

Report error on 500 response.

(self)

Source from the content-addressed store, hash-verified

99 assert err.is_error() is True
100
101 def test_is_error_500(self):
102 """Report error on 500 response."""
103 resp = requests.Response()
104 resp.status_code = 500
105 err = APIError('', response=resp)
106 assert err.is_error() is True
107
108 def test_create_error_from_exception(self):
109 resp = requests.Response()

Callers

nothing calls this directly

Calls 2

is_errorMethod · 0.95
APIErrorClass · 0.90

Tested by

no test coverage detected