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

Method test_iter_keys

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

Source from the content-addressed store, hash-verified

5181 @unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
5182 'trace function introduces __local__')
5183 def test_iter_keys(self):
5184 # Testing dict-proxy keys...
5185 it = self.C.__dict__.keys()
5186 self.assertNotIsInstance(it, list)
5187 keys = list(it)
5188 keys.sort()
5189 self.assertEqual(keys, ['__dict__', '__doc__', '__firstlineno__',
5190 '__module__',
5191 '__static_attributes__', '__weakref__',
5192 'meth'])
5193
5194 @unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
5195 'trace function introduces __local__')

Callers

nothing calls this directly

Calls 5

listClass · 0.85
assertNotIsInstanceMethod · 0.80
keysMethod · 0.45
sortMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected