From 676484734939afe60973b4703c079f1a5caee567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 14 May 2019 22:32:40 +0200 Subject: [PATCH] fix cookie tests 'cookies' is a CookieJar, not a dict, and removing the call to '.keys()' doesn't have the same effect --- test/test_cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_cookies.py b/test/test_cookies.py index f1b87ae0e6..39dfb0caa5 100644 --- a/test/test_cookies.py +++ b/test/test_cookies.py @@ -86,7 +86,7 @@ def tearDown(self): def test_dict(self): cookies = extractor.find("test:").session.cookies self.assertEqual(len(cookies), len(self.cdict)) - self.assertEqual(sorted(cookies), sorted(self.cdict)) + self.assertEqual(sorted(cookies.keys()), sorted(self.cdict.keys())) self.assertEqual(sorted(cookies.values()), sorted(self.cdict.values())) def test_domain(self):