~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-02-21 16:43:22 UTC
  • mfrom: (1560 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1562.
  • Revision ID: john@arbash-meinel.com-20060221164322-b007aa882582a66e
[merge] bzr.dev, cleanup conflicts, fixup http tests for new TestCase layout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        error = errors.NoRepositoryPresent(dir)
30
30
        self.assertNotEqual(-1, str(error).find(repr(dir.transport.clone('..').base)))
31
31
        self.assertEqual(-1, str(error).find(repr(dir.transport.base)))
 
32
 
 
33
    def test_up_to_date(self):
 
34
        error = errors.UpToDateFormat(bzrdir.BzrDirFormat4())
 
35
        self.assertEqualDiff("The branch format Bazaar-NG branch, "
 
36
                             "format 0.0.4 is already at the most "
 
37
                             "recent format.",
 
38
                             str(error))