summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-11 02:36:59 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-11 02:36:59 +0100
commit1f4838b8a3e5f0c7c400097f56329e5a133ec4e8 (patch)
tree02fe5433c993dfd0faa3482b4baa9160e551b1ed /source4/lib/ldb/tests
parent2466d2cc5e210a124bb23cb9d2c8d3cc608a7c7f (diff)
downloadsamba-1f4838b8a3e5f0c7c400097f56329e5a133ec4e8.tar.gz
samba-1f4838b8a3e5f0c7c400097f56329e5a133ec4e8.tar.bz2
samba-1f4838b8a3e5f0c7c400097f56329e5a133ec4e8.zip
python/ldap: Wrap parse_control_strings().
(This used to be commit b27e5a68530c4fd6430cbb174b63f8ff2b6f4e53)
Diffstat (limited to 'source4/lib/ldb/tests')
-rwxr-xr-xsource4/lib/ldb/tests/python/api.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py
index 8469e8f3cd..236698e382 100755
--- a/source4/lib/ldb/tests/python/api.py
+++ b/source4/lib/ldb/tests/python/api.py
@@ -62,6 +62,11 @@ class SimpleLdb(unittest.TestCase):
self.assertTrue(l.get_opaque("my_opaque") is not None)
self.assertEquals(None, l.get_opaque("unknown"))
+ def test_parse_control_strings(self):
+ l = ldb.Ldb("foo.tdb")
+ self.assertRaises(ldb.LdbError, l.parse_control_strings, ["foo", "bar"])
+ self.assertTrue(l.parse_control_strings(["paged_results:1:5"]) is not None)
+
def test_search_scope_base(self):
l = ldb.Ldb("foo.tdb")
self.assertEquals(len(l.search(ldb.Dn(l, "dc=foo"),