~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_check.py

  • Committer: Robert Collins
  • Date: 2009-12-16 22:29:31 UTC
  • mto: This revision was merged to the branch mainline in revision 4920.
  • Revision ID: robertc@robertcollins.net-20091216222931-wbbn5ey4mwmpatwd
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        revid2 = tree.commit('2')
47
47
        check_object = tree.branch.repository.check([revid1, revid2])
48
48
        check_object.report_results(verbose=True)
49
 
        log = u"".join(self.getDetails()['log'].iter_text())
50
 
        self.assertContainsRe(log, "0 unreferenced text versions")
 
49
        self.assertContainsRe(self.get_log(), "0 unreferenced text versions")
51
50
 
52
51
 
53
52
class TestFindInconsistentRevisionParents(TestCaseWithBrokenRevisionIndex):
90
89
        # contents of it!
91
90
        check_object = repo.check(['ignored'])
92
91
        check_object.report_results(verbose=False)
93
 
        log = u"".join(self.getDetails()['log'].iter_text())
94
 
        self.assertContainsRe(
95
 
            log, '1 revisions have incorrect parents in the revision index')
 
92
        self.assertContainsRe(self.get_log(),
 
93
            '1 revisions have incorrect parents in the revision index')
96
94
        check_object.report_results(verbose=True)
97
 
        log = u"".join(self.getDetails()['log'].iter_text())
98
95
        self.assertContainsRe(
99
 
            log,
 
96
            self.get_log(),
100
97
            "revision-id has wrong parents in index: "
101
98
            r"\('incorrect-parent',\) should be \(\)")
102
99
 
147
144
        rev_id = builder.commit('first post')
148
145
        result = repo.check(None, check_repo=True)
149
146
        result.report_results(True)
150
 
        log = u"".join(self.getDetails()['log'].iter_text())
 
147
        log = self.get_log()
151
148
        self.assertFalse('Missing' in log, "Something was missing in %r" % log)