/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-06 03:40:32 UTC
  • mto: (1685.1.1 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060106034032-6ad5e572d9249519
Moved run_bzr_decode into TestCase
Added a new test for Command.encoding_type
added tests for bzr revno and bzr revision-info

Show diffs side-by-side

added added

removed removed

Lines of Context:
475
475
        encoding = kwargs.pop('encoding', None)
476
476
        return self.run_bzr_captured(args, retcode=retcode, encoding=encoding)
477
477
 
 
478
    def run_bzr_decode(self, *args, **kwargs):
 
479
        if kwargs.has_key('encoding'):
 
480
            encoding = kwargs['encoding']
 
481
        else:
 
482
            encoding = bzrlib.user_encoding
 
483
        return self.run_bzr(*args, **kwargs)[0].decode(encoding)
 
484
 
478
485
    def check_inventory_shape(self, inv, shape):
479
486
        """Compare an inventory to a list of expected names.
480
487