MCPcopy Index your code
hub / github.com/python/cpython / test_keys

Method test_keys

Lib/idlelib/idle_test/test_debugobj.py:38–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 self.assertTrue(ti.IsExpandable())
37
38 def test_keys(self):
39 ti = debugobj.SequenceTreeItem('label', 'abc')
40 self.assertEqual(list(ti.keys()), [0, 1, 2]) # keys() is a range.
41
42
43class DictTreeItemTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

keysMethod · 0.95
listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected