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

Method test_click_cancel

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

Source from the content-addressed store, hash-verified

351 self.assertFalse(dialog.destroy.called)
352
353 def test_click_cancel(self):
354 dialog = self.dialog
355 dialog.entry.insert(0, 'abc')
356 dialog.button_cancel.invoke()
357 self.assertEqual(dialog.result, None)
358 self.assertTrue(dialog.destroy.called)
359
360
361class SectionnameGuiTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
insertMethod · 0.45
invokeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected