Skip to content

Commit

Permalink
Use asserts for failing test so we get better feedback on the failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed May 24, 2022
1 parent a54838e commit 529d2c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,10 +1028,10 @@ def test_Cookie_iterator(self): # noqa
i = 0
for c in cs:
# assert isinstance(c, Cookie)
assert c.version == versions[i]
assert c.name == names[i]
assert c.domain == domains[i]
assert c.path == paths[i]
self.assertEqual(c.version, versions[i])
self.assertEqual(c.name, names[i])
self.assertEqual(c.domain, domains[i])
self.assertEqual(c.path, paths[i])
i = i + 1

self.assertRaises(IndexError, lambda cs=cs: cs[5])
Expand Down

0 comments on commit 529d2c4

Please sign in to comment.