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

Method test_save_added

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

Source from the content-addressed store, hash-verified

738 usermain.remove_section('Indent')
739
740 def test_save_added(self):
741 changes = self.load()
742 self.assertTrue(changes.save_all())
743 self.assertEqual(usermain['Msec']['mitem'], 'mval')
744 self.assertEqual(userhigh['Hsec']['hitem'], 'hval')
745 self.assertEqual(userkeys['Ksec']['kitem'], 'kval')
746 changes.add_option('main', 'Msec', 'mitem', 'mval')
747 self.assertFalse(changes.save_all())
748 usermain.remove_section('Msec')
749 userhigh.remove_section('Hsec')
750 userkeys.remove_section('Ksec')
751
752 def test_save_help(self):
753 # Any change to HelpFiles overwrites entire section.

Callers

nothing calls this directly

Calls 7

loadMethod · 0.95
assertTrueMethod · 0.80
save_allMethod · 0.80
assertFalseMethod · 0.80
remove_sectionMethod · 0.80
assertEqualMethod · 0.45
add_optionMethod · 0.45

Tested by

no test coverage detected