summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-11-17 02:31:13 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-11-17 08:36:17 +0100
commitf7c8af759909e472a5f9dcaa7f738c7151a57afc (patch)
treee989b8bda24f15cdac14e885e51566fdccd71061 /source4/scripting
parent1214e5f23d2c7a79656440f11b9c9b9ac6d78f5c (diff)
downloadsamba-f7c8af759909e472a5f9dcaa7f738c7151a57afc.tar.gz
samba-f7c8af759909e472a5f9dcaa7f738c7151a57afc.tar.bz2
samba-f7c8af759909e472a5f9dcaa7f738c7151a57afc.zip
samba.tests.dsdb: Import TestCase from samba.tests.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Nov 17 08:36:17 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/scripting')
-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")