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

Method test_click_help

Lib/idlelib/idle_test/test_configdialog.py:94–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 del d.destroy
93
94 def test_click_help(self):
95 dialog.note.select(dialog.keyspage)
96 with mock.patch.object(configdialog, 'view_text',
97 new_callable=Func) as view:
98 dialog.buttons['Help'].invoke()
99 title, contents = view.kwds['title'], view.kwds['contents']
100 self.assertEqual(title, 'Help for IDLE preferences')
101 self.assertStartsWith(contents, 'When you click')
102 self.assertEndsWith(contents,'a different name.\n')
103
104
105class FontPageTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

assertStartsWithMethod · 0.80
assertEndsWithMethod · 0.80
selectMethod · 0.45
invokeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected