make test_no_auto_head_option test more explicit
This commit is contained in:
parent
7a4c9772be
commit
c3a8f8e611
1 changed files with 7 additions and 2 deletions
|
|
@ -2035,5 +2035,10 @@ def test_no_auto_head_option(app, client):
|
||||||
def index_head():
|
def index_head():
|
||||||
return "", 200, {"test-header": "test-value"}
|
return "", 200, {"test-header": "test-value"}
|
||||||
|
|
||||||
assert client.get("/").data == b"Hello world"
|
rv = client.get("/")
|
||||||
assert "test-header" in client.head("/").headers
|
assert rv.data == b"Hello world"
|
||||||
|
assert "test-header" not in rv.headers
|
||||||
|
|
||||||
|
rv = client.head("/")
|
||||||
|
assert rv.data == b""
|
||||||
|
assert "test-header" in rv.headers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue