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

Method test_click_ok

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

Source from the content-addressed store, hash-verified

338 self.dialog.destroy.reset_mock()
339
340 def test_click_ok(self):
341 dialog = self.dialog
342 dialog.entry.insert(0, 'abc')
343 dialog.button_ok.invoke()
344 self.assertEqual(dialog.result, 'abc')
345 self.assertTrue(dialog.destroy.called)
346
347 def test_click_blank(self):
348 dialog = self.dialog

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