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

Method test_ok_good

Lib/idlelib/idle_test/test_config_key.py:55–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self.assertEqual(self.dialog.showerror.message, 'No key specified.')
54
55 def test_ok_good(self):
56 self.dialog.key_string.set('<Key-F11>')
57 self.dialog.list_keys_final.get.result = 'F11'
58 self.dialog.ok()
59 self.assertEqual(self.dialog.result, '<Key-F11>')
60 self.assertEqual(self.dialog.showerror.message, '')
61
62 def test_keys_no_ending(self):
63 self.assertFalse(self.dialog.keys_ok('<Control-Shift'))

Callers

nothing calls this directly

Calls 3

setMethod · 0.45
okMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected