summaryrefslogtreecommitdiff
path: root/source4/param/tests/bindings.py
diff options
context:
space:
mode:
Diffstat (limited to 'source4/param/tests/bindings.py')
-rw-r--r--source4/param/tests/bindings.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/param/tests/bindings.py b/source4/param/tests/bindings.py
index 57ad23b21e..11f8a299be 100644
--- a/source4/param/tests/bindings.py
+++ b/source4/param/tests/bindings.py
@@ -35,6 +35,17 @@ class ParamTestCase(unittest.TestCase):
file = param.ParamFile()
self.assertTrue(file is not None)
+ def test_add_section(self):
+ file = param.ParamFile()
+ file.add_section("global")
+ self.assertTrue(file["global"] is not None)
+
+ def test_set_param_string(self):
+ file = param.ParamFile()
+ file.add_section("global")
+ file["global"]["data"] = "bar"
+ self.assertEquals("bar", file["global"]["data"])
+
def test_get_section(self):
file = param.ParamFile()
self.assertEquals(None, file.get_section("unknown"))