(self)
| 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 | |
| 97 | class IdleUserConfParserTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected