~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

MergeĀ fromĀ mainline

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))