Lines Matching refs:viewkeys
10 kt = type({}.viewkeys())
22 keys = d.viewkeys()
34 self.assertEqual(d.viewkeys(), d.viewkeys())
36 self.assertEqual(d.viewkeys(), e.viewkeys())
38 self.assertNotEqual(d.viewkeys(), e.viewkeys())
66 self.assertEqual(d.viewkeys(), e.viewitems())
67 self.assertNotEqual(d.viewitems(), e.viewkeys())
82 r = repr(d.viewkeys())
95 self.assertEqual(d1.viewkeys() & d1.viewkeys(), {'a', 'b'})
96 self.assertEqual(d1.viewkeys() & d2.viewkeys(), {'b'})
97 self.assertEqual(d1.viewkeys() & d3.viewkeys(), set())
98 self.assertEqual(d1.viewkeys() & set(d1.viewkeys()), {'a', 'b'})
99 self.assertEqual(d1.viewkeys() & set(d2.viewkeys()), {'b'})
100 self.assertEqual(d1.viewkeys() & set(d3.viewkeys()), set())
101 self.assertEqual(d1.viewkeys() & tuple(d1.viewkeys()), {'a', 'b'})
103 self.assertEqual(d1.viewkeys() | d1.viewkeys(), {'a', 'b'})
104 self.assertEqual(d1.viewkeys() | d2.viewkeys(), {'a', 'b', 'c'})
105 self.assertEqual(d1.viewkeys() | d3.viewkeys(), {'a', 'b', 'd', 'e'})
106 self.assertEqual(d1.viewkeys() | set(d1.viewkeys()), {'a', 'b'})
107 self.assertEqual(d1.viewkeys() | set(d2.viewkeys()), {'a', 'b', 'c'})
108 self.assertEqual(d1.viewkeys() | set(d3.viewkeys()),
110 self.assertEqual(d1.viewkeys() | (1, 2), {'a', 'b', 1, 2})
112 self.assertEqual(d1.viewkeys() ^ d1.viewkeys(), set())
113 self.assertEqual(d1.viewkeys() ^ d2.viewkeys(), {'a', 'c'})
114 self.assertEqual(d1.viewkeys() ^ d3.viewkeys(), {'a', 'b', 'd', 'e'})
115 self.assertEqual(d1.viewkeys() ^ set(d1.viewkeys()), set())
116 self.assertEqual(d1.viewkeys() ^ set(d2.viewkeys()), {'a', 'c'})
117 self.assertEqual(d1.viewkeys() ^ set(d3.viewkeys()),
119 self.assertEqual(d1.viewkeys() ^ tuple(d2.keys()), {'a', 'c'})
121 self.assertEqual(d1.viewkeys() - d1.viewkeys(), set())
122 self.assertEqual(d1.viewkeys() - d2.viewkeys(), {'a'})
123 self.assertEqual(d1.viewkeys() - d3.viewkeys(), {'a', 'b'})
124 self.assertEqual(d1.viewkeys() - set(d1.viewkeys()), set())
125 self.assertEqual(d1.viewkeys() - set(d2.viewkeys()), {'a'})
126 self.assertEqual(d1.viewkeys() - set(d3.viewkeys()), {'a', 'b'})
127 self.assertEqual(d1.viewkeys() - (0, 1), {'a', 'b'})
177 self.assertIsInstance(d.viewkeys(), collections.KeysView)
178 self.assertIsInstance(d.viewkeys(), collections.MappingView)
179 self.assertIsInstance(d.viewkeys(), collections.Set)
180 self.assertIsInstance(d.viewkeys(), collections.Sized)
181 self.assertIsInstance(d.viewkeys(), collections.Iterable)
182 self.assertIsInstance(d.viewkeys(), collections.Container)
197 self.assertRaises(TypeError, copy.copy, d.viewkeys())
205 pickle.dumps, d.viewkeys(), proto)