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

Method test_is_core_binding

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

Source from the content-addressed store, hash-verified

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
520 conf = self.mock_config()
521
522 self.assertTrue(conf.IsCoreBinding('copy'))
523 self.assertTrue(conf.IsCoreBinding('cut'))
524 self.assertTrue(conf.IsCoreBinding('del-word-right'))
525 self.assertFalse(conf.IsCoreBinding('not-exists'))
526
527 def test_extra_help_source_list(self):
528 # Test GetExtraHelpSourceList and GetAllExtraHelpSourcesList in same

Callers

nothing calls this directly

Calls 4

mock_configMethod · 0.95
assertTrueMethod · 0.80
IsCoreBindingMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected