summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-25 19:12:39 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-25 19:12:39 +0100
commitb5f66789e70bd105e162470927942c40496cdc92 (patch)
tree3a762f29008dd7d7c92221eb363f90580f8acb6f /tests
parentadded view type for input fields (diff)
downloadpyload-b5f66789e70bd105e162470927942c40496cdc92.tar.xz
simple rendering for settings page
Diffstat (limited to 'tests')
-rw-r--r--tests/manager/test_configManager.py4
-rw-r--r--tests/other/test_configparser.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/manager/test_configManager.py b/tests/manager/test_configManager.py
index 0fed702c1..6c10da4dd 100644
--- a/tests/manager/test_configManager.py
+++ b/tests/manager/test_configManager.py
@@ -89,7 +89,6 @@ class TestConfigManager(TestCase):
# should not trigger something
self.config.delete("foo")
-
def test_sections(self):
self.addConfig()
@@ -111,6 +110,9 @@ class TestConfigManager(TestCase):
i +=1
assert i == 1
+ def test_get_section(self):
+ self.addConfig()
+ assert self.config.getSection("plugin")[0].name == "Name"
@raises(InvalidConfigSection)
def test_restricted_access(self):
diff --git a/tests/other/test_configparser.py b/tests/other/test_configparser.py
index 09b686738..7f34e64d3 100644
--- a/tests/other/test_configparser.py
+++ b/tests/other/test_configparser.py
@@ -31,6 +31,9 @@ class TestConfigParser():
assert isinstance(config.config, dict)
assert isinstance(values, dict)
+ def test_get(self):
+ assert self.config.getSection("general")[0].config
+
@raises(KeyError)
def test_invalid_config(self):
print self.config["invalid"]["config"]