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

Method test_isexpandable

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

Source from the content-addressed store, hash-verified

43class DictTreeItemTest(unittest.TestCase):
44
45 def test_isexpandable(self):
46 ti = debugobj.DictTreeItem('label', {})
47 self.assertFalse(ti.IsExpandable())
48 ti = debugobj.DictTreeItem('label', {1:1})
49 self.assertTrue(ti.IsExpandable())
50
51 def test_keys(self):
52 ti = debugobj.DictTreeItem('label', {1:1, 0:0, 2:2})

Callers

nothing calls this directly

Calls 3

assertFalseMethod · 0.80
assertTrueMethod · 0.80
IsExpandableMethod · 0.45

Tested by

no test coverage detected