~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Daniel Watkins
  • Date: 2009-02-09 23:26:58 UTC
  • mto: (3999.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4000.
  • Revision ID: daniel@daniel-watkins.co.uk-20090209232658-npfcqo2ryr5tx414
Added InvalidShelfId error and accompanying test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
572
572
            str(err), "The message handler raised an exception:\n")
573
573
        self.assertEndsWith(str(err), "Exception: example error\n")
574
574
 
 
575
    def test_invalid_shelf_id(self):
 
576
        invalid_id = "foo"
 
577
        err = errors.InvalidShelfId(invalid_id)
 
578
        self.assertEqual('"foo" is not a valid shelf id.', str(err))
 
579
 
575
580
 
576
581
class PassThroughError(errors.BzrError):
577
582