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>
from samba.netcmd.main import cmd_sambatool
import samba.tests
-class SambaToolCmdTest(samba.tests.TestCaseInTempDir):
+class SambaToolCmdTest(samba.tests.BlackboxTestCase):
def getSamDB(self, *argv):
"""a convenience function to get a samdb instance so that we can query it"""
sys.path.insert(0, "bin/python")
import samba.tests
+from samba.tests.samba_tool.base import SambaToolCmdTest
from samba import dsdb
from ldb import (
)
-class DrsBaseTestCase(samba.tests.BlackboxTestCase):
+class DrsBaseTestCase(SambaToolCmdTest):
"""Base class implementation for all DRS python tests.
It is intended to provide common initialization and
and functionality used by all DRS tests in drs/python