~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Robert Collins
  • Date: 2006-02-26 07:54:02 UTC
  • mto: (1587.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1588.
  • Revision ID: robertc@robertcollins.net-20060226075402-92fca9fdb7b0070d
Check for incorrect revision parentage in the weave during revision access.

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