summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-01-17 12:35:26 +1300
committerJelmer Vernooij <jelmer@samba.org>2010-01-17 12:35:26 +1300
commitaa1fce645aed8be48c2fc09c86c2b5844114e93b (patch)
tree0c3ab0069b5e626b8db3a03848cac8ae45cf4528
parenta18889fd77a5db582f32fd563b28d1e4185233a9 (diff)
downloadsamba-aa1fce645aed8be48c2fc09c86c2b5844114e93b.tar.gz
samba-aa1fce645aed8be48c2fc09c86c2b5844114e93b.tar.bz2
samba-aa1fce645aed8be48c2fc09c86c2b5844114e93b.zip
ldap: Fix test failure that seemed to go unreported previously.
-rwxr-xr-xsource4/lib/ldb/tests/python/ldap.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py
index 129b4c3b01..798047cee9 100755
--- a/source4/lib/ldb/tests/python/ldap.py
+++ b/source4/lib/ldb/tests/python/ldap.py
@@ -1813,8 +1813,7 @@ objectclass: user
sAMAccountName: """ + user_name + """
nTSecurityDescriptor:: """ + desc_base64)
res = self.ldb.search(base=user_dn, attrs=["nTSecurityDescriptor"])
- print res
- self.assertRaises(KeyError, lambda: res[0]["nTSecurityDescriptor"])
+ self.assertTrue("nTSecurityDescriptor" in res[0])
finally:
self.delete_force(self.ldb, user_dn)