The status_code property is present with 200 response.
(self)
| 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.""" |