From 4ad81ff7b008cb5defbf2a4d2d6012b8a597773c Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Mon, 27 Mar 2023 18:47:15 +0100 Subject: if_none_match: quote ETag values --- tests/middleware/test_if_none_match.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/middleware') diff --git a/tests/middleware/test_if_none_match.py b/tests/middleware/test_if_none_match.py index 0a0cdf8..33d0d3b 100644 --- a/tests/middleware/test_if_none_match.py +++ b/tests/middleware/test_if_none_match.py @@ -56,6 +56,7 @@ def test_etag_matches_if_none_match_header(app, value): response = call_app(app, environ) assert response.data == b"" assert response.status == "304 Not Modified" + assert ("ETag", f'"{ETAG}"') in response.headers @pytest.mark.parametrize( @@ -74,6 +75,7 @@ def test_etag_matches_if_none_match_header_list(app, value): response = call_app(app, environ) assert response.data == b"" assert response.status == "304 Not Modified" + assert ("ETag", f'"{ETAG}"') in response.headers def test_etag_matches_if_none_match_header_star(app): @@ -81,6 +83,7 @@ def test_etag_matches_if_none_match_header_star(app): response = call_app(app, environ) assert response.data == b"" assert response.status == "304 Not Modified" + assert ("ETag", f'"{ETAG}"') in response.headers def test_missing_etag_does_not_match_if_none_match_header_star(): -- cgit v1.2.3-54-g00ecf