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