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

Method test_load_file

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

Source from the content-addressed store, hash-verified

85 self.assertEqual(parser.sections(), [])
86
87 def test_load_file(self):
88 # Borrow test/configdata/cfgparser.1 from test_configparser.
89 config_path = findfile('cfgparser.1', subdir='configdata')
90 parser = config.IdleConfParser(config_path)
91 parser.Load()
92
93 self.assertEqual(parser.Get('Foo Bar', 'foo'), 'newbar')
94 self.assertEqual(parser.GetOptionList('Foo Bar'), ['foo'])
95
96
97class IdleUserConfParserTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

LoadMethod · 0.95
GetMethod · 0.95
GetOptionListMethod · 0.95
findfileFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected