~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_upgrade.py

[merge] bzr.dev 2294

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
29
29
from bzrlib.transport import get_transport
30
30
import bzrlib.ui as ui
 
31
from bzrlib.repofmt.knitrepo import (
 
32
    RepositoryFormatKnit1,
 
33
    RepositoryFormatKnit2,
 
34
    )
31
35
 
32
36
 
33
37
class TestWithUpgradableBranches(TestCaseWithTransport):
140
144
        self.assertTrue(isinstance(converted_dir._format,
141
145
                                   bzrdir.BzrDirMetaFormat1))
142
146
        self.assertTrue(isinstance(converted_dir.open_repository()._format,
143
 
                                   repository.RepositoryFormatKnit1))
 
147
                                   RepositoryFormatKnit1))
144
148
 
145
149
    def test_upgrade_repo(self):
146
150
        self.run_bzr('init-repository', '--format=metaweave', 'repo')