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

Method test_get_extension_keys

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

Source from the content-addressed store, hash-verified

447 userextn.remove_section('ZzDummy')
448
449 def test_get_extension_keys(self):
450 userextn.read_string('''
451 [ZzDummy]
452 enable = True
453 ''')
454 self.assertEqual(idleConf.GetExtensionKeys('ZzDummy'),
455 {'<<z-in>>': ['<Control-Shift-KeyRelease-Insert>']})
456 userextn.remove_section('ZzDummy')
457# need option key test
458## key = ['<Option-Key-2>'] if sys.platform == 'darwin' else ['<Alt-Key-2>']
459## eq(conf.GetExtensionKeys('ZoomHeight'), {'<<zoom-height>>': key})

Callers

nothing calls this directly

Calls 4

read_stringMethod · 0.80
GetExtensionKeysMethod · 0.80
remove_sectionMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected