mirror of https://github.com/python/cpython
#19166: merge with 3.3.
This commit is contained in:
commit
a349478573
|
@ -45,6 +45,9 @@ class DictTest(unittest.TestCase):
|
|||
self.assertEqual(set(d.keys()), set())
|
||||
d = {'a': 1, 'b': 2}
|
||||
k = d.keys()
|
||||
self.assertEqual(set(k), {'a', 'b'})
|
||||
self.assertIn('a', k)
|
||||
self.assertIn('b', k)
|
||||
self.assertIn('a', d)
|
||||
self.assertIn('b', d)
|
||||
self.assertRaises(TypeError, d.keys, None)
|
||||
|
|
Loading…
Reference in New Issue