From f7c8af759909e472a5f9dcaa7f738c7151a57afc Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 17 Nov 2011 02:31:13 +0100 Subject: samba.tests.dsdb: Import TestCase from samba.tests. Autobuild-User: Jelmer Vernooij Autobuild-Date: Thu Nov 17 08:36:17 CET 2011 on sn-devel-104 --- source4/scripting/python/samba/tests/dsdb.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source4/scripting/python') 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") -- cgit