Use new error constant (missing from 6efb7ff9)
authorAndrew Bartlett <abartlet@samba.org>
Wed, 7 Jan 2009 05:30:05 +0000 (16:30 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Jan 2009 06:09:26 +0000 (17:09 +1100)
source4/lib/ldb/tests/python/ldap.py

index f9006dbd63f169464561dbab8be841a231f81c6b..f0b50007ef6a42905671fea57210e97c22feda00 100755 (executable)
@@ -616,7 +616,7 @@ member: cn=ldaptestuser4,cn=ldaptestcontainer,""" + self.base_dn + """
             ldb.delete("cn=ldaptestcontainer2," + self.base_dn)
             self.fail()
         except LdbError, (num, _):
-            self.assertEquals(num, NOT_ALLOWED_ON_NON_LEAF)
+            self.assertEquals(num, ERR_NOT_ALLOWED_ON_NON_LEAF)
 
         print "Testing base ldb.search for CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn
         res = ldb.search(expression="(objectclass=*)", base=("CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn), scope=SCOPE_BASE)