MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_iter_items

Method test_iter_items

Lib/test/test_descr.py:5205–5214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5203 @unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
5204 'trace function introduces __local__')
5205 def test_iter_items(self):
5206 # Testing dict-proxy iteritems...
5207 it = self.C.__dict__.items()
5208 self.assertNotIsInstance(it, list)
5209 keys = [item[0] for item in it]
5210 keys.sort()
5211 self.assertEqual(keys, ['__dict__', '__doc__', '__firstlineno__',
5212 '__module__',
5213 '__static_attributes__', '__weakref__',
5214 'meth'])
5215
5216 def test_dict_type_with_metaclass(self):
5217 # Testing type of __dict__ when metaclass set...

Callers

nothing calls this directly

Calls 4

assertNotIsInstanceMethod · 0.80
itemsMethod · 0.45
sortMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected