From 542396ccd9a8b06a769300c5952477e13e3db8ae Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 1 Aug 2010 11:26:08 +0200 Subject: s4:ldap.py - add a test for "CN=System" object rename behaviour --- source4/dsdb/tests/python/ldap.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/dsdb') diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py index 9911d5d249..b48ee265c8 100755 --- a/source4/dsdb/tests/python/ldap.py +++ b/source4/dsdb/tests/python/ldap.py @@ -937,6 +937,14 @@ objectClass: container except LdbError, (num, _): self.assertEquals(num, ERR_UNWILLING_TO_PERFORM) + # Performs some other constraints testing + + try: + ldb.rename("CN=Policies,CN=System," + self.base_dn, "CN=Users2," + self.base_dn) + self.fail() + except LdbError, (num, _): + self.assertEquals(num, ERR_OTHER) + def test_rename_twice(self): """Tests the rename operation twice - this corresponds to a past bug""" print "Tests the rename twice operation""" -- cgit