(self)
| 2237 | configparser.ConfigParser()[configparser.UNNAMED_SECTION] = {'a': '1'} |
| 2238 | |
| 2239 | def test_multiple_configs(self): |
| 2240 | cfg = configparser.ConfigParser(allow_unnamed_section=True) |
| 2241 | cfg.read_string('a = 1') |
| 2242 | cfg.read_string('b = 2') |
| 2243 | |
| 2244 | self.assertEqual([configparser.UNNAMED_SECTION], cfg.sections()) |
| 2245 | self.assertEqual('1', cfg[configparser.UNNAMED_SECTION]['a']) |
| 2246 | self.assertEqual('2', cfg[configparser.UNNAMED_SECTION]['b']) |
| 2247 | |
| 2248 | |
| 2249 | class InvalidInputTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected