summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-22 12:54:23 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-27 18:52:28 +0200
commit5875661cf22a5d5d61bd1f60d0fb44debd66da28 (patch)
treed3443666aaeec6874da240c92fb2e2af36a6d2df
parentb75396579f3ebe6f857a2212b7718b32dabcbe45 (diff)
downloadsamba-5875661cf22a5d5d61bd1f60d0fb44debd66da28.tar.gz
samba-5875661cf22a5d5d61bd1f60d0fb44debd66da28.tar.bz2
samba-5875661cf22a5d5d61bd1f60d0fb44debd66da28.zip
s4:ldap.py - reactivate some assertions in "test_all"
There should always be one result on both s4 and Windows. Reviewed-by: abartlet
-rwxr-xr-xsource4/dsdb/tests/python/ldap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py
index 2e35eec10a..05427d2d53 100755
--- a/source4/dsdb/tests/python/ldap.py
+++ b/source4/dsdb/tests/python/ldap.py
@@ -1989,11 +1989,11 @@ member: cn=ldaptestuser2,cn=users,""" + self.base_dn + """
print "Testing one-level ldb.search for (&(cn=ldaptestuser4)(objectClass=user)) in cn=ldaptestcontainer2," + self.base_dn
res = ldb.search(expression="(&(cn=ldaptestuser4)(objectClass=user))", base=("cn=ldaptestcontainer2," + self.base_dn), scope=SCOPE_ONELEVEL)
- # FIXME: self.assertEquals(len(res), 0)
+ self.assertEquals(len(res), 1)
print "Testing one-level ldb.search for (&(cn=ldaptestuser4)(objectClass=user)) in cn=ldaptestcontainer2," + self.base_dn
res = ldb.search(expression="(&(cn=ldaptestuser4)(objectClass=user))", base=("cn=ldaptestcontainer2," + self.base_dn), scope=SCOPE_SUBTREE)
- # FIXME: self.assertEquals(len(res), 0)
+ self.assertEquals(len(res), 1)
print "Testing delete of subtree renamed "+("CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn)
ldb.delete(("CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn))