1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

selftest: Rebase DrsBaseTestCase on SambaToolCmdTest

This then makes SambaToolCmdTest based on BlackboxTestCase.

This allows us to use better command output testing in the fsmo tests

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett
2016-06-01 21:27:07 +12:00
committed by Garming Sam
parent 721b21bb80
commit 9173f2027c
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ from cStringIO import StringIO
from samba.netcmd.main import cmd_sambatool from samba.netcmd.main import cmd_sambatool
import samba.tests import samba.tests
class SambaToolCmdTest(samba.tests.TestCaseInTempDir): class SambaToolCmdTest(samba.tests.BlackboxTestCase):
def getSamDB(self, *argv): def getSamDB(self, *argv):
"""a convenience function to get a samdb instance so that we can query it""" """a convenience function to get a samdb instance so that we can query it"""

View File

@ -25,6 +25,7 @@ import os
sys.path.insert(0, "bin/python") sys.path.insert(0, "bin/python")
import samba.tests import samba.tests
from samba.tests.samba_tool.base import SambaToolCmdTest
from samba import dsdb from samba import dsdb
from ldb import ( from ldb import (
@ -34,7 +35,7 @@ from ldb import (
) )
class DrsBaseTestCase(samba.tests.BlackboxTestCase): class DrsBaseTestCase(SambaToolCmdTest):
"""Base class implementation for all DRS python tests. """Base class implementation for all DRS python tests.
It is intended to provide common initialization and It is intended to provide common initialization and
and functionality used by all DRS tests in drs/python and functionality used by all DRS tests in drs/python