~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-12 02:46:38 UTC
  • mfrom: (3144.6.3 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080312024638-d1zdt09upkzq52is
Add 'kind' to UnknownFormatError (#173980, dwatkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
452
452
             "http://bug.com/"),
453
453
            str(err))
454
454
 
 
455
    def test_unknown_format(self):
 
456
        err = errors.UnknownFormatError('bar', kind='foo')
 
457
        self.assertEquals("Unknown foo format: 'bar'", str(err))
 
458
 
455
459
 
456
460
class PassThroughError(errors.BzrError):
457
461