summaryrefslogtreecommitdiff
path: root/tests/test_ini.py
diff options
context:
space:
mode:
authorLudovico Cavedon <ludovico.cavedon@gmail.com>2010-04-18 23:36:58 -0700
committerLudovico Cavedon <ludovico.cavedon@gmail.com>2010-04-18 23:36:58 -0700
commit60b2e5ebf0b074436aaec91409d9863d015b9a73 (patch)
treea1bc02ee02e081bf37b30ff43c9628832b9afc52 /tests/test_ini.py
parent8cbb16c4830d341deb19d77d8ff9c10813460e46 (diff)
Imported Upstream version 0.3.2
Diffstat (limited to 'tests/test_ini.py')
-rw-r--r--tests/test_ini.py8
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)