From aa1fce645aed8be48c2fc09c86c2b5844114e93b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 17 Jan 2010 12:35:26 +1300 Subject: ldap: Fix test failure that seemed to go unreported previously. --- source4/lib/ldb/tests/python/ldap.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit