~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

MergeĀ inĀ upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
                             "format 0.0.4 is already at the most "
37
37
                             "recent format.",
38
38
                             str(error))
 
39
 
 
40
    def test_corrupt_repository(self):
 
41
        repo = self.make_repository('.')
 
42
        error = errors.CorruptRepository(repo)
 
43
        self.assertEqualDiff("An error has been detected in the repository %s.\n"
 
44
                             "Please run bzr reconcile on this repository." %
 
45
                             repo.bzrdir.root_transport.base,
 
46
                             str(error))