git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95eb302
)
pyldb: add tests for getting control results
author
Matthieu Patou
<mat@matws.net>
Wed, 9 Feb 2011 09:50:35 +0000
(12:50 +0300)
committer
Matthieu Patou
<mat@matws.net>
Mon, 21 Feb 2011 07:56:00 +0000
(10:56 +0300)
source4/dsdb/tests/python/ldap.py
patch
|
blob
|
history
diff --git
a/source4/dsdb/tests/python/ldap.py
b/source4/dsdb/tests/python/ldap.py
index d67ccc44a74bc3009e464533f43a681ff7f774df..d324d40cc766f41593dc5696a55cd690cf5581f4 100755
(executable)
--- a/
source4/dsdb/tests/python/ldap.py
+++ b/
source4/dsdb/tests/python/ldap.py
@@
-2584,6
+2584,14
@@
nTSecurityDescriptor:: """ + desc_base64
# restore old value
self.ldb.set_dsheuristics(dsheuristics)
+ def test_ldapControlReturn(self):
+ """Testing that if we request a control that return a control it
+ really return something"""
+ res = self.ldb.search(attrs=["cn"],
+ controls=["paged_result:1:10"])
+ self.assertEquals(len(res.controls), 1)
+ self.assertEquals(res.controls[0].oid, "1.2.840.113556.1.4.319")
+
class BaseDnTests(unittest.TestCase):