diff options
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/lib/ldb/tests/python/ldap.py | 3 |
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) |