~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Robert Collins
  • Date: 2005-08-24 05:29:04 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050824052904-8c23b7fba5dc7908
provide a helper to redirect output as desired

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    """bzr-specific test base class"""
27
27
    def run_bzr(self, *args, **kwargs):
28
28
        retcode = kwargs.get('retcode', 0)
29
 
        self.assertEquals(bzrlib.commands.run_bzr(args), retcode)
 
29
        result = self.apply_redirected(None, None, None,
 
30
                                       bzrlib.commands.run_bzr, args)
 
31
        self.assertEquals(result, retcode)
30
32
        
31
33
 
32
34
def selftest(verbose=False):