MCPcopy Create free account
hub / github.com/python/cpython / test_keys_shift_bad

Method test_keys_shift_bad

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

Source from the content-addressed store, hash-verified

74 self.assertEqual(self.dialog.showerror.message, '')
75
76 def test_keys_shift_bad(self):
77 self.dialog.list_keys_final.get.result = 'a'
78 self.dialog.get_modifiers.result = ['Shift']
79 self.assertFalse(self.dialog.keys_ok('<a>'))
80 self.assertIn('shift modifier', self.dialog.showerror.message)
81 self.dialog.get_modifiers.result = []
82
83 def test_keys_dup(self):
84 for mods, final, seq in (([], 'F12', '<Key-F12>'),

Callers

nothing calls this directly

Calls 3

assertFalseMethod · 0.80
keys_okMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected