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