summaryrefslogtreecommitdiff
path: root/source4/dsdb/tests/python/deletetest.py
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-19 09:07:53 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-19 12:07:06 +0100
commit8b7f23d644f2c9a0e5eeffeb2f93786c54a43afe (patch)
tree728273e656926ae18cc5a3da4cdae1cb411fa81b /source4/dsdb/tests/python/deletetest.py
parent5855194894535c57797a0475640e50c07ed92643 (diff)
downloadsamba-8b7f23d644f2c9a0e5eeffeb2f93786c54a43afe.tar.gz
samba-8b7f23d644f2c9a0e5eeffeb2f93786c54a43afe.tar.bz2
samba-8b7f23d644f2c9a0e5eeffeb2f93786c54a43afe.zip
s4:dsdb tests - use even more already defined pyldb functions to retrieve NCs
Diffstat (limited to 'source4/dsdb/tests/python/deletetest.py')
-rwxr-xr-xsource4/dsdb/tests/python/deletetest.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/dsdb/tests/python/deletetest.py b/source4/dsdb/tests/python/deletetest.py
index 7582d4bef7..aec6b8c2e8 100755
--- a/source4/dsdb/tests/python/deletetest.py
+++ b/source4/dsdb/tests/python/deletetest.py
@@ -50,16 +50,10 @@ class BasicDeleteTests(unittest.TestCase):
def GUID_string(self, guid):
return self.ldb.schema_format_value("objectGUID", guid)
- def find_configurationdn(self, ldb):
- res = ldb.search(base="", expression="", scope=SCOPE_BASE,
- attrs=["configurationNamingContext"])
- self.assertEquals(len(res), 1)
- return res[0]["configurationNamingContext"][0]
-
def setUp(self):
self.ldb = ldb
self.base_dn = ldb.domain_dn()
- self.configuration_dn = self.find_configurationdn(ldb)
+ self.configuration_dn = ldb.get_config_basedn().get_linearized()
def search_guid(self, guid):
print "SEARCH by GUID %s" % self.GUID_string(guid)