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

Method test_click_cancel

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

Source from the content-addressed store, hash-verified

83 del d.activate_config_changes, d.deactivate_current_config
84
85 def test_click_cancel(self):
86 d = dialog
87 d.destroy = Func()
88 changes['main']['something'] = 1
89 d.buttons['Cancel'].invoke()
90 self.assertEqual(changes['main'], {})
91 self.assertEqual(d.destroy.called, 1)
92 del d.destroy
93
94 def test_click_help(self):
95 dialog.note.select(dialog.keyspage)

Callers

nothing calls this directly

Calls 3

FuncClass · 0.90
invokeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected