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

Method test_get_core_keys

Lib/idlelib/idle_test/test_config.py:573–586  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

571 del root
572
573 def test_get_core_keys(self):
574 conf = self.mock_config()
575
576 eq = self.assertEqual
577 eq(conf.GetCoreKeys()['<<center-insert>>'], ['<Control-l>'])
578 eq(conf.GetCoreKeys()['<<copy>>'], ['<Control-c>', '<Control-C>'])
579 eq(conf.GetCoreKeys()['<<history-next>>'], ['<Alt-n>'])
580 eq(conf.GetCoreKeys('IDLE Classic Windows')['<<center-insert>>'],
581 ['<Control-Key-l>', '<Control-Key-L>'])
582 eq(conf.GetCoreKeys('IDLE Classic OSX')['<<copy>>'], ['<Command-Key-c>'])
583 eq(conf.GetCoreKeys('IDLE Classic Unix')['<<history-next>>'],
584 ['<Alt-Key-n>', '<Meta-Key-n>'])
585 eq(conf.GetCoreKeys('IDLE Modern Unix')['<<history-next>>'],
586 ['<Alt-Key-n>', '<Meta-Key-n>'])
587
588
589class CurrentColorKeysTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

mock_configMethod · 0.95
eqFunction · 0.85
GetCoreKeysMethod · 0.80

Tested by

no test coverage detected