diff options
author | Ludovico Cavedon <ludovico.cavedon@gmail.com> | 2010-04-18 23:36:58 -0700 |
---|---|---|
committer | Ludovico Cavedon <ludovico.cavedon@gmail.com> | 2010-04-18 23:36:58 -0700 |
commit | 60b2e5ebf0b074436aaec91409d9863d015b9a73 (patch) | |
tree | a1bc02ee02e081bf37b30ff43c9628832b9afc52 /tests/test_ini.py | |
parent | 8cbb16c4830d341deb19d77d8ff9c10813460e46 (diff) |
Imported Upstream version 0.3.2
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) |