~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: 2009-06-23 09:05:52 UTC
  • mfrom: (4462.3.3 stacking-policy)
  • Revision ID: pqm@pqm.ubuntu.com-20090623090552-hzfy5mv9hfcral7j
(robertc) Do not permit stacking a branch on itself. (Robert Collins,
        \#376243)

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
            "You will need to upgrade the branch to permit branch stacking.",
243
243
            str(error))
244
244
 
 
245
    def test_unstackable_location(self):
 
246
        error = errors.UnstackableLocationError('foo', 'bar')
 
247
        self.assertEqualDiff("The branch 'foo' cannot be stacked on 'bar'.",
 
248
            str(error))
 
249
 
245
250
    def test_unstackable_repository_format(self):
246
251
        format = u'foo'
247
252
        url = "/foo"