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

Method test_status_code_200

tests/unit/errors_test.py:24–29  ·  view source on GitHub ↗

The status_code property is present with 200 response.

(self)

Source from the content-addressed store, hash-verified

22 pass
23
24 def test_status_code_200(self):
25 """The status_code property is present with 200 response."""
26 resp = requests.Response()
27 resp.status_code = 200
28 err = APIError('', response=resp)
29 assert err.status_code == 200
30
31 def test_status_code_400(self):
32 """The status_code property is present with 400 response."""

Callers

nothing calls this directly

Calls 1

APIErrorClass · 0.90

Tested by

no test coverage detected