~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(jelmer) Add ControlDirFormat.supports_transport(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
    def test_fetch_into_smart_with_ghost(self):
336
336
        trans = self.make_smart_server('target')
337
337
        source_b = self.make_simple_branch_with_ghost()
 
338
        if not source_b.bzrdir._format.supports_transport(trans):
 
339
            raise TestNotApplicable("format does not support transport")
338
340
        target = self.make_repository('target')
339
341
        # Re-open the repository over the smart protocol
340
342
        target = repository.Repository.open(trans.base)
352
354
    def test_fetch_from_smart_with_ghost(self):
353
355
        trans = self.make_smart_server('source')
354
356
        source_b = self.make_simple_branch_with_ghost()
 
357
        if not source_b.bzrdir._format.supports_transport(trans):
 
358
            raise TestNotApplicable("format does not support transport")
355
359
        target = self.make_repository('target')
356
360
        target.lock_write()
357
361
        self.addCleanup(target.unlock)