~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(jelmer) Several more fixes for running the tests against foreign format
 plugins. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from bzrlib.tests.per_repository import TestCaseWithRepository
24
24
 
25
25
 
26
 
class TestNoSpuriousInconsistentAncestors(TestCaseWithRepository):
27
 
 
28
 
    def test_two_files_different_versions_no_inconsistencies_bug_165071(self):
29
 
        """Two files, with different versions can be clean."""
30
 
        tree = self.make_branch_and_tree('.')
31
 
        self.build_tree(['foo'])
32
 
        tree.smart_add(['.'])
33
 
        revid1 = tree.commit('1')
34
 
        self.build_tree(['bar'])
35
 
        tree.smart_add(['.'])
36
 
        revid2 = tree.commit('2')
37
 
        check_object = tree.branch.repository.check([revid1, revid2])
38
 
        check_object.report_results(verbose=True)
39
 
        self.assertContainsRe(self.get_log(), "0 unreferenced text versions")
40
 
 
41
 
 
42
26
class TestCleanRepository(TestCaseWithRepository):
43
27
 
44
28
    def test_new_repo(self):