~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

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_recursive_bind(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