~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Lukáš Lalinský
  • Date: 2007-11-27 19:27:40 UTC
  • mto: This revision was merged to the branch mainline in revision 3075.
  • Revision ID: lalinsky@gmail.com-20071127192740-2dv4oe4fd9hfhbyc
Add tests for InvalidBugTrackerURL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
403
403
            "Unable to create symlink u'\\xb5' on this platform",
404
404
            str(err))
405
405
 
 
406
    def test_incorrect_url(self):
 
407
        err = errors.InvalidBugTrackerURL('foo', 'http://bug.com/')
 
408
        self.assertEquals(
 
409
            ("The URL for bug tracker \"foo\" doesn't contain {id}: "
 
410
             "http://bug.com/"),
 
411
            str(err))
 
412
 
406
413
 
407
414
class PassThroughError(errors.BzrError):
408
415