From ba7eaa8e3f92ceedac322c9ab997fd78dceec488 Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Fri, 11 Apr 2025 09:46:37 -0700 Subject: [PATCH] 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. https://github.com/Pylons/webob/pull/466#discussion_r2039851484 --- tests/test_response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_response.py b/tests/test_response.py index f539b422..5f32f026 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -1052,7 +1052,7 @@ def dummy_wsgi_callable(environ, start_response): environ = {} def dummy_start_response(status, headers, exc_info=None): - assert headers, [("Set-Cookie" == "a=1; Path=/")] + assert headers == [("Set-Cookie", "a=1; Path=/")] result = wsgiapp(environ, dummy_start_response) assert result == "abc"