summaryrefslogtreecommitdiffstats
path: root/tests/other/test_configparser.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-06 15:54:52 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-06 15:54:52 +0100
commit6f8b5347dfa119a3df21f4ca8ba8c2b1537a726a (patch)
tree627c4d99f0aaa4c8022b70b3ebe72f201d924dd6 /tests/other/test_configparser.py
parentremoved unneeded stuff (diff)
downloadpyload-6f8b5347dfa119a3df21f4ca8ba8c2b1537a726a.tar.xz
first working parts of config api
Diffstat (limited to 'tests/other/test_configparser.py')
-rw-r--r--tests/other/test_configparser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/other/test_configparser.py b/tests/other/test_configparser.py
index 51ffc5a68..09b686738 100644
--- a/tests/other/test_configparser.py
+++ b/tests/other/test_configparser.py
@@ -25,6 +25,11 @@ class TestConfigParser():
assert "general" in self.config
assert "foobaar" not in self.config
+ def test_iter(self):
+ for section, config, values in self.config.iterSections():
+ assert isinstance(section, basestring)
+ assert isinstance(config.config, dict)
+ assert isinstance(values, dict)
@raises(KeyError)
def test_invalid_config(self):