summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-19 17:32:01 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-19 22:46:44 +0200
commit2b7b69544cfc498b731ef0d65759f65376d460fd (patch)
tree755c79240fc3bc4afc49d99be0b6a088bf563da6 /source4/lib
parentc2cb0a710b050845420e6128cf80e6c3653df650 (diff)
downloadsamba-2b7b69544cfc498b731ef0d65759f65376d460fd.tar.gz
samba-2b7b69544cfc498b731ef0d65759f65376d460fd.tar.bz2
samba-2b7b69544cfc498b731ef0d65759f65376d460fd.zip
dsdb_schema_info: Clean up imports, avoid using rpc test case for
non-RPC tests.
Diffstat (limited to 'source4/lib')
-rwxr-xr-xsource4/lib/ldb/tests/python/dsdb_schema_info.py11
1 files changed, 2 insertions, 9 deletions
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
-
########################################################################################