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

Method test_close

Lib/idlelib/idle_test/test_browser.py:52–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 self.assertIsInstance(rn, browser.ModuleBrowserTreeItem)
51
52 def test_close(self):
53 mb = self.mb
54 mb.top.destroy = Func()
55 mb.node.destroy = Func()
56 mb.close()
57 self.assertTrue(mb.top.destroy.called)
58 self.assertTrue(mb.node.destroy.called)
59 del mb.top.destroy, mb.node.destroy
60
61 def test_is_browseable_extension(self):
62 path = "/path/to/file"

Callers

nothing calls this directly

Calls 3

FuncClass · 0.90
assertTrueMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected