1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-05 04:23:51 +03:00

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
This commit is contained in:
Jelmer Vernooij
2011-11-17 02:31:13 +01:00
parent 1214e5f23d
commit f7c8af7599

View File

@@ -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")