1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

Move get_loadparm() and get_credentials() to samba.tests.TestCase.

This commit is contained in:
Jelmer Vernooij 2010-12-15 14:57:43 +01:00
parent 8b47fcea04
commit f98d9e06cf

View File

@ -29,10 +29,22 @@ import subprocess
import tempfile
# Other modules import these two classes from here, for convenience:
from testtools.testcase import TestCase, TestSkipped
from testtools.testcase import (
TestCase as TesttoolsTestCase,
TestSkipped,
)
class LdbTestCase(TestCase):
class TestCase(TesttoolsTestCase):
def get_loadparm(self):
return env_loadparm()
def get_credentials(self):
return cmdline_credentials
class LdbTestCase(TesttoolsTestCase):
"""Trivial test case for running tests against a LDB."""
def setUp(self):
@ -84,12 +96,7 @@ def env_get_var_value(var_name):
cmdline_credentials = None
class RpcInterfaceTestCase(TestCase):
def get_loadparm(self):
return env_loadparm()
def get_credentials(self):
return cmdline_credentials
"""DCE/RPC Test case."""
class ValidNetbiosNameTests(TestCase):