~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Daniel Watkins
  • Date: 2008-03-03 21:53:19 UTC
  • mto: (3144.6.3 bzr.ab.integration)
  • mto: This revision was merged to the branch mainline in revision 3265.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080303215319-2x3ysdzq5aqo3v3u
Added test.

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