def test_2XX_error(self):
status_code = 205
with pytest.raises(HTTPException) as exc_info:
sansio.decipher_response(status_code, {}, b'')
assert exc_info.value.status_code == http.HTTPStatus(status_code)
文章目录