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

Method test_click_module_name

Lib/idlelib/idle_test/test_query.py:402–409  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

400 requires('gui')
401
402 def test_click_module_name(self):
403 root = Tk()
404 root.withdraw()
405 dialog = query.Goto(root, 'T', 't', _utest=True)
406 dialog.entry.insert(0, '22')
407 dialog.button_ok.invoke()
408 self.assertEqual(dialog.result, 22)
409 root.destroy()
410
411
412class HelpsourceGuiTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

destroyMethod · 0.95
TkClass · 0.90
insertMethod · 0.45
invokeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected