Skip to content

Commit

Permalink
Tests: Expand cidict membership tests
Browse files Browse the repository at this point in the history
Note that for backwards compatibility, cidict keeps the
has_key method even on Python 3.
  • Loading branch information
pyldap contributors authored and Petr Viktorin committed Nov 24, 2017
1 parent 8a54ae3 commit 301939e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/t_cidict.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ def test_cidict(self):
cix_items = sorted(cix.items())
self.assertEqual(cix_items, [('AbCDeF',123), ('xYZ',987)])
del cix["abcdEF"]
self.assertEqual("abcdef" in cix, False)
self.assertEqual("abcdef" in cix._keys, False)
self.assertEqual("AbCDef" in cix._keys, False)
self.assertEqual("abcdef" in cix, False)
self.assertEqual("AbCDef" in cix, False)
self.assertEqual(cix.has_key("abcdef"), False)
self.assertEqual(cix.has_key("AbCDef"), False)


if __name__ == '__main__':
Expand Down

0 comments on commit 301939e

Please sign in to comment.