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

Method test_get_extensions

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

Source from the content-addressed store, hash-verified

412 sys.platform = current_platform
413
414 def test_get_extensions(self):
415 userextn.read_string('''
416 [ZzDummy]
417 enable = True
418 [DISABLE]
419 enable = False
420 ''')
421 eq = self.assertEqual
422 iGE = idleConf.GetExtensions
423 eq(iGE(shell_only=True), [])
424 eq(iGE(), ['ZzDummy'])
425 eq(iGE(editor_only=True), ['ZzDummy'])
426 eq(iGE(active_only=False), ['ZzDummy', 'DISABLE'])
427 eq(iGE(active_only=False, editor_only=True), ['ZzDummy', 'DISABLE'])
428 userextn.remove_section('ZzDummy')
429 userextn.remove_section('DISABLE')
430
431
432 def test_remove_key_bind_names(self):

Callers

nothing calls this directly

Calls 3

eqFunction · 0.85
read_stringMethod · 0.80
remove_sectionMethod · 0.80

Tested by

no test coverage detected