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

Method test_ok

Lib/idlelib/idle_test/test_textview.py:63–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 view.ok()
62
63 def test_ok(self):
64 view = VW(root, 'Title', 'test text', modal=False)
65 view.destroy = Func()
66 view.ok()
67 self.assertTrue(view.destroy.called)
68 del view.destroy # Unmask real function.
69 view.destroy()
70
71
72class AutoHideScrollbarTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

FuncClass · 0.90
VWClass · 0.85
assertTrueMethod · 0.80
okMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected