(self)
| 147 | self.assertEqual(parser.sections(), ['Idle']) |
| 148 | |
| 149 | def test_is_empty(self): |
| 150 | parser = self.new_parser() |
| 151 | |
| 152 | parser.AddSection('Foo') |
| 153 | parser.AddSection('Bar') |
| 154 | self.assertTrue(parser.IsEmpty()) |
| 155 | self.assertEqual(parser.sections(), []) |
| 156 | |
| 157 | parser.SetOption('Foo', 'bar', 'false') |
| 158 | parser.AddSection('Bar') |
| 159 | self.assertFalse(parser.IsEmpty()) |
| 160 | self.assertCountEqual(parser.sections(), ['Foo']) |
| 161 | |
| 162 | def test_save(self): |
| 163 | with tempfile.TemporaryDirectory() as tdir: |
nothing calls this directly
no test coverage detected