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

Method test_init

Lib/idlelib/idle_test/test_tree.py:22–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 del cls.root
21
22 def test_init(self):
23 # Start with code slightly adapted from htest.
24 sc = tree.ScrolledCanvas(
25 self.root, bg="white", highlightthickness=0, takefocus=1)
26 sc.frame.pack(expand=1, fill="both", side='left')
27 item = tree.FileTreeItem(tree.ICONDIR)
28 node = tree.TreeNode(sc.canvas, None, item)
29 node.expand()
30
31
32class TestScrollEvent(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

expandMethod · 0.95
packMethod · 0.45

Tested by

no test coverage detected