From 2b7b69544cfc498b731ef0d65759f65376d460fd Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 19 Jun 2010 17:32:01 +0200 Subject: dsdb_schema_info: Clean up imports, avoid using rpc test case for non-RPC tests. --- source4/lib/ldb/tests/python/dsdb_schema_info.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'source4/lib/ldb/tests') diff --git a/source4/lib/ldb/tests/python/dsdb_schema_info.py b/source4/lib/ldb/tests/python/dsdb_schema_info.py index 976d67024a..f6e0024b7b 100755 --- a/source4/lib/ldb/tests/python/dsdb_schema_info.py +++ b/source4/lib/ldb/tests/python/dsdb_schema_info.py @@ -33,12 +33,9 @@ import os sys.path.append("bin/python") from samba.auth import system_session -from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE, LdbError -from ldb import Message, MessageElement, Dn -from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE +from ldb import SCOPE_BASE, LdbError from samba import Ldb -import unittest import samba.tests import samba.dcerpc.drsuapi from samba.dcerpc.drsblobs import schemaInfoBlob @@ -46,7 +43,7 @@ from samba.ndr import ndr_unpack from samba.dcerpc.misc import GUID -class SchemaInfoTestCase(samba.tests.RpcInterfaceTestCase): +class SchemaInfoTestCase(samba.tests.TestCase): def setUp(self): super(SchemaInfoTestCase, self).setUp() @@ -62,11 +59,9 @@ class SchemaInfoTestCase(samba.tests.RpcInterfaceTestCase): # get DC invocation_id self.invocation_id = GUID(ldb.get_invocation_id()) - def tearDown(self): super(SchemaInfoTestCase, self).tearDown() - def _getSchemaInfo(self): try: schema_info_data = ldb.searchone(attribute="schemaInfo", @@ -192,8 +187,6 @@ systemOnly: FALSE # compare resulting schemaInfo schi_after = self._getSchemaInfo() self._checkSchemaInfo(schi_before, schi_after) - pass - ######################################################################################## -- cgit