~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Parth Malwankar
  • Date: 2010-07-14 08:53:58 UTC
  • mto: (5050.3.7 2.2)
  • mto: This revision was merged to the branch mainline in revision 5365.
  • Revision ID: parth.malwankar@gmail.com-20100714085358-6un4ny0cn908spkq
better error message for RecursiveBind

Show diffs side-by-side

added added

removed removed

Lines of Context:
660
660
        self.assertEqualDiff("Invalid pattern(s) found. Bad pattern msg.",
661
661
            str(error))
662
662
 
 
663
    def test_invalid_pattern(self):
 
664
        error = errors.RecursiveBind('foo_bar_branch')
 
665
        msg = ('Branch "foo_bar_branch" appears to be bound to itself. '
 
666
            'Please use `bzr unbind` to fix.')
 
667
        self.assertEqualDiff(msg, str(error))
 
668
 
663
669
 
664
670
class PassThroughError(errors.BzrError):
665
671