From 070aa27cf5f88d2036c88c110e00421c427c0c9b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 28 Sep 2016 15:10:31 +1000 Subject: parse_set_cookie header returns an empty list if no cookies are found This matches parse_cookie, and is more idiomatic. --- test/netlib/http/test_cookies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/netlib/http/test_cookies.py b/test/netlib/http/test_cookies.py index 905f549c..80ffb0a6 100644 --- a/test/netlib/http/test_cookies.py +++ b/test/netlib/http/test_cookies.py @@ -194,10 +194,10 @@ def test_parse_set_cookie_header(): vals = [ [ - "", None + "", [] ], [ - ";", None + ";", [] ], [ "one=uno", @@ -257,7 +257,7 @@ def test_parse_set_cookie_header(): for i in range(len(expected)): set_cookie_equal(ret2[i], expected[i]) else: - assert ret is None + assert not ret def test_refresh_cookie(): -- cgit v1.2.3