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

Method test_save_user_cfg_files

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

Source from the content-addressed store, hash-verified

313 eq(conf.userCfg['foo'].GetOptionList('Foo Bar'), ['foo'])
314
315 def test_save_user_cfg_files(self):
316 conf = self.mock_config()
317
318 with mock.patch('idlelib.config.IdleUserConfParser.Save') as m:
319 conf.SaveUserCfgFiles()
320 self.assertEqual(m.call_count, len(conf.userCfg))
321
322 def test_get_option(self):
323 conf = self.mock_config()

Callers

nothing calls this directly

Calls 3

mock_configMethod · 0.95
SaveUserCfgFilesMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected