summaryrefslogtreecommitdiff
path: root/source4/param/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-17 12:07:51 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:51:09 +0100
commitf89c7a6e5eb082794d64b487e69fc442d138ca28 (patch)
tree3e53b034b4a3424d3c56c07797f33c478004fe75 /source4/param/tests
parentc2604542295d5665172019da829544202ff034d6 (diff)
downloadsamba-f89c7a6e5eb082794d64b487e69fc442d138ca28.tar.gz
samba-f89c7a6e5eb082794d64b487e69fc442d138ca28.tar.bz2
samba-f89c7a6e5eb082794d64b487e69fc442d138ca28.zip
r26505: Add python bindings for some samdb-related functions, improve provisioning in python.
(This used to be commit d2402251666738c0372bbbaeaa1d26c06e254033)
Diffstat (limited to 'source4/param/tests')
-rw-r--r--source4/param/tests/bindings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/tests/bindings.py b/source4/param/tests/bindings.py
index 11f8a299be..0bdd28a619 100644
--- a/source4/param/tests/bindings.py
+++ b/source4/param/tests/bindings.py
@@ -43,8 +43,8 @@ class ParamTestCase(unittest.TestCase):
def test_set_param_string(self):
file = param.ParamFile()
file.add_section("global")
- file["global"]["data"] = "bar"
- self.assertEquals("bar", file["global"]["data"])
+ file.set_string("data", "bar")
+ self.assertEquals("bar", file.get_string("data"))
def test_get_section(self):
file = param.ParamFile()