Report client error on 400 response.
(self)
| 78 | assert err.is_client_error() is False |
| 79 | |
| 80 | def test_is_client_error_400(self): |
| 81 | """Report client error on 400 response.""" |
| 82 | resp = requests.Response() |
| 83 | resp.status_code = 400 |
| 84 | err = APIError('', response=resp) |
| 85 | assert err.is_client_error() is True |
| 86 | |
| 87 | def test_is_error_300(self): |
| 88 | """Report no error on 300 response.""" |
nothing calls this directly
no test coverage detected