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):