summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/python/samba/tests/dsdb.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/tests/dsdb.py b/source4/scripting/python/samba/tests/dsdb.py
index d4331f3ef5..b4f229fbcd 100644
--- a/source4/scripting/python/samba/tests/dsdb.py
+++ b/source4/scripting/python/samba/tests/dsdb.py
@@ -22,7 +22,7 @@
from samba.credentials import Credentials
from samba.samdb import SamDB
from samba.auth import system_session
-from testtools.testcase import TestCase
+from samba.tests import TestCase
from samba.ndr import ndr_unpack, ndr_pack
from samba.dcerpc import drsblobs
import ldb
@@ -32,7 +32,6 @@ import samba
class DsdbTests(TestCase):
-
def setUp(self):
super(DsdbTests, self).setUp()
self.lp = samba.param.LoadParm()
@@ -43,11 +42,9 @@ class DsdbTests(TestCase):
self.samdb = SamDB(os.path.join(self.baseprovpath(), "private", "sam.ldb"),
session_info=self.session, credentials=self.creds,lp=self.lp)
-
def baseprovpath(self):
return os.path.join(os.environ['SELFTEST_PREFIX'], "dc")
-
def test_get_oid_from_attrid(self):
oid = self.samdb.get_oid_from_attid(591614)
self.assertEquals(oid, "1.2.840.113556.1.4.1790")