22
from bzrlib.tests import (
24
TestCaseWithTransport,
29
from bzrlib.symbol_versioning import (
33
import bzrlib.ui as ui
23
from bzrlib import tests
26
def load_tests(basic_tests, module, loader):
47
# suite = loader.loadTestsFromModuleNames(testmod_names)
48
suite = loader.loadTestsFromModuleNames(["%s.%s" % (__name__, i) for i in testmod_names])
53
class ExternalBase(TestCaseWithTransport):
55
@deprecated_method(zero_eighteen)
56
def runbzr(self, args, retcode=0):
57
if isinstance(args, basestring):
59
return self.run_bzr(args, retcode=retcode)
61
def check_output(self, output, *args):
62
"""Verify that the expected output matches what bzr says.
64
The output is supplied first, so that you can supply a variable
65
number of arguments to bzr.
67
self.assertEquals(self.run_bzr(*args)[0], output)
35
basic_tests.addTest(loader.loadTestsFromModuleNames(
36
["%s.%s" % (__name__, tmn) for tmn in testmod_names]))