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

Method test_get_keyset

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

Source from the content-addressed store, hash-verified

506 sys.platform = current_platform
507
508 def test_get_keyset(self):
509 conf = self.mock_config()
510
511 # Conflict with key set, should be disable to ''
512 conf.defaultCfg['extensions'].add_section('Foobar')
513 conf.defaultCfg['extensions'].add_section('Foobar_cfgBindings')
514 conf.defaultCfg['extensions'].set('Foobar', 'enable', 'True')
515 conf.defaultCfg['extensions'].set('Foobar_cfgBindings', 'newfoo', '<Key-F3>')
516 self.assertEqual(conf.GetKeySet('IDLE Modern Unix')['<<newfoo>>'], '')
517
518 def test_is_core_binding(self):
519 # XXX: Should move out the core keys to config file or other place

Callers

nothing calls this directly

Calls 5

mock_configMethod · 0.95
GetKeySetMethod · 0.80
add_sectionMethod · 0.45
setMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected