diff options
Diffstat (limited to 'tests/test_ini.py')
-rw-r--r-- | tests/test_ini.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_ini.py b/tests/test_ini.py index fdf9e5b..bdb9080 100644 --- a/tests/test_ini.py +++ b/tests/test_ini.py @@ -218,6 +218,14 @@ but = also me self.assertEqual(p.section1.just.__class__, config.Undefined) self.assertEqual(p.section2.help.__class__, config.Undefined) + def test_newsection(self): + sio = StringIO(self.s1) + p = ini.INIConfig(sio) + p.new1.created = 1 + setattr(getattr(p, 'new2'), 'created', 1) + self.assertEqual(p.new1.created, 1) + self.assertEqual(p.new2.created, 1) + def test_order(self): sio = StringIO(self.s1) p = ini.INIConfig(sio) |