The status_code property is present with 500 response.
(self)
| 36 | assert err.status_code == 400 |
| 37 | |
| 38 | def test_status_code_500(self): |
| 39 | """The status_code property is present with 500 response.""" |
| 40 | resp = requests.Response() |
| 41 | resp.status_code = 500 |
| 42 | err = APIError('', response=resp) |
| 43 | assert err.status_code == 500 |
| 44 | |
| 45 | def test_is_server_error_200(self): |
| 46 | """Report not server error on 200 response.""" |