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

Method test_save_help

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

Source from the content-addressed store, hash-verified

750 userkeys.remove_section('Ksec')
751
752 def test_save_help(self):
753 # Any change to HelpFiles overwrites entire section.
754 changes = self.changes
755 changes.save_option('main', 'HelpFiles', 'IDLE', 'idledoc')
756 changes.add_option('main', 'HelpFiles', 'ELDI', 'codeldi')
757 changes.save_all()
758 self.assertFalse(usermain.has_option('HelpFiles', 'IDLE'))
759 self.assertTrue(usermain.has_option('HelpFiles', 'ELDI'))
760
761 def test_save_default(self): # Cover 2nd and 3rd false branches.
762 changes = self.changes

Callers

nothing calls this directly

Calls 6

save_optionMethod · 0.80
save_allMethod · 0.80
assertFalseMethod · 0.80
assertTrueMethod · 0.80
add_optionMethod · 0.45
has_optionMethod · 0.45

Tested by

no test coverage detected