Skip to content

Commit ba7eaa8

Browse files
committed
Fix assertion in test_merge_cookies_resp_is_wsgi_callable
As pointed out by @merwok, this assertion didn't make much sense. This changes it so the `Set-Cookie` header is actually checked. Pylons#466 (comment)
1 parent 39d5af3 commit ba7eaa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ def dummy_wsgi_callable(environ, start_response):
10521052
environ = {}
10531053

10541054
def dummy_start_response(status, headers, exc_info=None):
1055-
assert headers, [("Set-Cookie" == "a=1; Path=/")]
1055+
assert headers == [("Set-Cookie", "a=1; Path=/")]
10561056

10571057
result = wsgiapp(environ, dummy_start_response)
10581058
assert result == "abc"

0 commit comments

Comments
 (0)