~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Martin Pool
  • Date: 2005-08-26 01:48:31 UTC
  • Revision ID: mbp@sourcefrog.net-20050826014831-fc1057642aa24814
doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
class BzrTestBase(InTempDir):
26
26
    """bzr-specific test base class"""
27
27
    def run_bzr(self, *args, **kwargs):
 
28
        """Invoke bzr, as if it were run from the command line.
 
29
 
 
30
        This should be the main method for tests that want to exercise the
 
31
        overall behavior of the bzr application (rather than a unit test
 
32
        or a functional test of the library.)
 
33
 
 
34
        Much of the old code runs bzr by forking a new copy of Python, but
 
35
        that is slower, harder to debug, and generally not necessary.
 
36
        """"
28
37
        retcode = kwargs.get('retcode', 0)
29
38
        self.assertEquals(bzrlib.commands.run_bzr(args), retcode)
30
39