summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-19 17:48:37 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-19 22:46:44 +0200
commit96f120e2349b855ea34888ad923861e787812827 (patch)
tree4e9fe946949b32db0dc05d2dc7a931cc9454fa8b
parent026a4d85a1a909d2efe447bea36b941e01da7e42 (diff)
downloadsamba-96f120e2349b855ea34888ad923861e787812827.tar.gz
samba-96f120e2349b855ea34888ad923861e787812827.tar.bz2
samba-96f120e2349b855ea34888ad923861e787812827.zip
python/passwords: Clean up imports.
-rwxr-xr-xsource4/lib/ldb/tests/python/passwords.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/source4/lib/ldb/tests/python/passwords.py b/source4/lib/ldb/tests/python/passwords.py
index c26bbf0a12..b3e6fc949e 100755
--- a/source4/lib/ldb/tests/python/passwords.py
+++ b/source4/lib/ldb/tests/python/passwords.py
@@ -22,18 +22,16 @@ import samba.getopt as options
from samba.auth import system_session
from samba.credentials import Credentials
-from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE, LdbError
+from ldb import SCOPE_BASE, LdbError
from ldb import ERR_NO_SUCH_OBJECT, ERR_ATTRIBUTE_OR_VALUE_EXISTS
-from ldb import ERR_ENTRY_ALREADY_EXISTS, ERR_UNWILLING_TO_PERFORM
-from ldb import ERR_NOT_ALLOWED_ON_NON_LEAF, ERR_OTHER, ERR_INVALID_DN_SYNTAX
+from ldb import ERR_UNWILLING_TO_PERFORM
from ldb import ERR_NO_SUCH_ATTRIBUTE
-from ldb import ERR_OBJECT_CLASS_VIOLATION, ERR_NOT_ALLOWED_ON_RDN
-from ldb import ERR_NAMING_VIOLATION, ERR_CONSTRAINT_VIOLATION
-from ldb import ERR_UNDEFINED_ATTRIBUTE_TYPE
+from ldb import ERR_CONSTRAINT_VIOLATION
from ldb import Message, MessageElement, Dn
-from ldb import FLAG_MOD_ADD, FLAG_MOD_REPLACE, FLAG_MOD_DELETE
+from ldb import FLAG_MOD_REPLACE, FLAG_MOD_DELETE
from samba import gensec
from samba.samdb import SamDB
+import samba.tests
from subunit.run import SubunitTestRunner
import unittest
@@ -62,7 +60,8 @@ creds.set_gensec_features(creds.get_gensec_features() | gensec.FEATURE_SEAL)
# Tests start here
#
-class PasswordTests(unittest.TestCase):
+class PasswordTests(samba.tests.TestCase):
+
def delete_force(self, ldb, dn):
try:
ldb.delete(dn)