~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

(mbp) merge bzr.dev to 0.8, prepare for release

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
    def test_get_set_default_format(self):
46
46
        old_format = repository.RepositoryFormat.get_default_format()
47
 
        # default is None - we cannot create a Repository independently yet
48
 
        self.assertTrue(isinstance(old_format, repository.RepositoryFormat7))
 
47
        self.assertTrue(isinstance(old_format, repository.RepositoryFormatKnit1))
49
48
        repository.RepositoryFormat.set_default_format(SampleRepositoryFormat())
50
49
        # creating a repository should now create an instrumented dir.
51
50
        try:
268
267
 
269
268
    def assertHasKnit(self, t, knit_name):
270
269
        """Assert that knit_name exists on t."""
271
 
        self.assertEqualDiff('# bzr knit index 7\n',
 
270
        self.assertEqualDiff('# bzr knit index 8\n',
272
271
                             t.get(knit_name + '.kndx').read())
273
272
        # no default content
274
273
        self.assertTrue(t.has(knit_name + '.knit'))