Report server error on 500 response.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected