~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-02-11 01:12:40 UTC
  • mfrom: (3999.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090211011240-gv0zdxmwomt3ndtn
Improve shelf documentation & fix backtrace (Daniel Watkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
577
577
        self.assertEqual(str(err), "Branching 'bar'(foo) must create a"
578
578
                                   " working tree.")
579
579
 
 
580
    def test_invalid_shelf_id(self):
 
581
        invalid_id = "foo"
 
582
        err = errors.InvalidShelfId(invalid_id)
 
583
        self.assertEqual('"foo" is not a valid shelf id, '
 
584
            'try a number instead.', str(err))
 
585
 
580
586
 
581
587
class PassThroughError(errors.BzrError):
582
588