~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

Nearly complete .bzr/checkout splitout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        opened_branch = made_control.open_branch()
156
156
        self.assertEqual(made_control, opened_branch.bzrdir)
157
157
        self.failUnless(isinstance(opened_branch, made_branch.__class__))
 
158
        self.failUnless(isinstance(opened_branch._format, made_branch._format.__class__))
158
159
 
159
160
    def test_create_repository(self):
160
161
        # a bzrdir can construct a repository for itself.
181
182
        opened_repo = made_control.open_repository()
182
183
        self.assertEqual(made_control, opened_repo.bzrdir)
183
184
        self.failUnless(isinstance(opened_repo, made_repo.__class__))
 
185
        self.failUnless(isinstance(opened_repo._format, made_repo._format.__class__))
184
186
 
185
187
    def test_create_workingtree(self):
186
188
        # a bzrdir can construct a working tree for itself.
215
217
        opened_tree = made_control.open_workingtree()
216
218
        self.assertEqual(made_control, opened_tree.bzrdir)
217
219
        self.failUnless(isinstance(opened_tree, made_tree.__class__))
 
220
        self.failUnless(isinstance(opened_tree._format, made_tree._format.__class__))
218
221
 
219
222
    def test_get_branch_transport(self):
220
223
        dir = self.make_bzrdir('.')