1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00

python/ldap: Wrap parse_control_strings().

This commit is contained in:
Jelmer Vernooij
2008-01-11 02:36:59 +01:00
parent 1ccbab81d7
commit b27e5a6853
4 changed files with 114 additions and 25 deletions

View File

@@ -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"),