~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-10 06:29:49 UTC
  • mfrom: (3995.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090210062949-kj7rpejso2405ug1
Add --no-tree option to bzr branch (Daniel Watkins)

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
 
575
580
 
576
581
class PassThroughError(errors.BzrError):
577
582