Skip to content

Commit

Permalink
fix cookie tests
Browse files Browse the repository at this point in the history
'cookies' is a CookieJar, not a dict,
and removing the call to '.keys()' doesn't have the same effect
  • Loading branch information
mikf committed May 14, 2019
1 parent 9890bfd commit 6764847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6764847

Please sign in to comment.