Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
authorAndrew Bartlett <abartlet@samba.org>
Tue, 14 Apr 2009 00:55:53 +0000 (10:55 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Apr 2009 00:55:53 +0000 (10:55 +1000)
source4/lib/ldb/tests/python/ldap.py

index 7d2c7d054723c431e391dffa1d8a306d1f5c536d..caa1c477d3bcedaf21c8b6f19c47030332200af6 100755 (executable)
@@ -78,7 +78,10 @@ class BasicTests(unittest.TestCase):
         self.delete_force(self.ldb, "cn=ldaptestgroup2,cn=users," + self.base_dn)
         self.delete_force(self.ldb, "cn=ldaptestutf8user èùéìòà ,cn=users," + self.base_dn)
         self.delete_force(self.ldb, "cn=ldaptestutf8user2  èùéìòà ,cn=users," + self.base_dn)
-  
+        self.delete_force(self.ldb, "cn=parentguidtest,cn=users," + self.base_dn)
+        self.delete_force(self.ldb, "cn=parentguidtest,cn=testotherusers," + self.base_dn)
+        self.delete_force(self.ldb, "cn=testotherusers," + self.base_dn)
+      
     def test_group_add_invalid_member(self):
         """Testing group add with invalid member"""
         try:
@@ -118,7 +121,8 @@ class BasicTests(unittest.TestCase):
                           scope=SCOPE_BASE,
                           attrs=["parentGUID"]);
         self.assertEquals(res1[0]["objectGUID"], res2[0]["parentGUID"]);
-        
+        ldb.delete("cn=parentguidtest,cn=testotherusers," + self.base_dn)
+        ldb.delete("cn=testotherusers," + self.base_dn)
 
     def test_all(self):
         """Basic tests"""