The status_code property is present with 400 response.
(self)
| 29 | assert err.status_code == 200 |
| 30 | |
| 31 | def test_status_code_400(self): |
| 32 | """The status_code property is present with 400 response.""" |
| 33 | resp = requests.Response() |
| 34 | resp.status_code = 400 |
| 35 | err = APIError('', response=resp) |
| 36 | assert err.status_code == 400 |
| 37 | |
| 38 | def test_status_code_500(self): |
| 39 | """The status_code property is present with 500 response.""" |