diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-01-17 12:35:26 +1300 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-01-17 12:35:26 +1300 |
commit | aa1fce645aed8be48c2fc09c86c2b5844114e93b (patch) | |
tree | 0c3ab0069b5e626b8db3a03848cac8ae45cf4528 /source4/lib/ldb | |
parent | a18889fd77a5db582f32fd563b28d1e4185233a9 (diff) | |
download | samba-aa1fce645aed8be48c2fc09c86c2b5844114e93b.tar.gz samba-aa1fce645aed8be48c2fc09c86c2b5844114e93b.tar.bz2 samba-aa1fce645aed8be48c2fc09c86c2b5844114e93b.zip |
ldap: Fix test failure that seemed to go unreported previously.
Diffstat (limited to 'source4/lib/ldb')
-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) |