diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-04-14 10:52:33 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-04-14 10:52:33 +1000 |
commit | 82ad66e9dfd30f7ffe912f6c9198908c40802ac4 (patch) | |
tree | f8cbe9e01b630ca16a26abc65deabd8dad62a10b /source4/lib | |
parent | e1a76de03aecb2e5e554c0594664a846efbbe65a (diff) | |
download | samba-82ad66e9dfd30f7ffe912f6c9198908c40802ac4.tar.gz samba-82ad66e9dfd30f7ffe912f6c9198908c40802ac4.tar.bz2 samba-82ad66e9dfd30f7ffe912f6c9198908c40802ac4.zip |
s4:ldb Make it possible to re-run ldap.py again
The parentGUID test didn't clean up after itself correctly.
Andrew Bartlett
Diffstat (limited to 'source4/lib')
-rwxr-xr-x | source4/lib/ldb/tests/python/ldap.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/lib/ldb/tests/python/ldap.py b/source4/lib/ldb/tests/python/ldap.py index 7d2c7d0547..caa1c477d3 100755 --- a/source4/lib/ldb/tests/python/ldap.py +++ b/source4/lib/ldb/tests/python/ldap.py @@ -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""" |