~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-10 03:12:50 UTC
  • mto: (3995.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3996.
  • Revision ID: daniel@daniel-watkins.co.uk-20090210031250-15o0i4q8e9tqy86h
Made exception message slightly better.

Show diffs side-by-side

added added

removed removed

Lines of Context:
574
574
 
575
575
    def test_must_have_working_tree(self):
576
576
        err = errors.MustHaveWorkingTree('foo', 'bar')
577
 
        self.assertEqual(str(err), "The branch 'bar'(foo) cannot be branched without a working tree.")
 
577
        self.assertEqual(str(err), "Branching 'bar'(foo) must create a"
 
578
                                   " working tree.")
578
579
 
579
580
 
580
581
class PassThroughError(errors.BzrError):