From f89c7a6e5eb082794d64b487e69fc442d138ca28 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 17 Dec 2007 12:07:51 +0100 Subject: r26505: Add python bindings for some samdb-related functions, improve provisioning in python. (This used to be commit d2402251666738c0372bbbaeaa1d26c06e254033) --- source4/param/tests/bindings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/param') 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() -- cgit