/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Jelmer Vernooij
  • Date: 2009-02-11 19:27:20 UTC
  • mfrom: (3978.4.1 branch-bzrdir-inter)
  • mto: This revision was merged to the branch mainline in revision 4250.
  • Revision ID: jelmer@samba.org-20090211192720-8g4sure689gq5fod
Merge bzr.dev.

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_must_have_working_tree(self):
 
576
        err = errors.MustHaveWorkingTree('foo', 'bar')
 
577
        self.assertEqual(str(err), "Branching 'bar'(foo) must create a"
 
578
                                   " working tree.")
 
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
 
575
586
 
576
587
class PassThroughError(errors.BzrError):
577
588