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

Method test_ok_empty

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

Source from the content-addressed store, hash-verified

47 # A test that sets a non-blank modifier list should reset it to [].
48
49 def test_ok_empty(self):
50 self.dialog.key_string.set(' ')
51 self.dialog.ok()
52 self.assertEqual(self.dialog.result, '')
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>')

Callers

nothing calls this directly

Calls 3

setMethod · 0.45
okMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected