~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Martin Pool
  • Date: 2007-02-12 05:09:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: mbp@sourcefrog.net-20070212050955-ctczxopwvmco8rv0
Re-register InterWeaveRepo, fix test integration, add test for it

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
        # now we should get the default InterRepository object again.
395
395
        self.assertGetsDefaultInterRepository(dummy_a, dummy_b)
396
396
 
 
397
    def test_interweave_registered(self):
 
398
        # optimized conversion between weave repos is (still) present
 
399
        t = self.get_transport()
 
400
        t.mkdir('r1')
 
401
        t.mkdir('r2')
 
402
        r1 = bzrdir.BzrDirFormat6().initialize('r1')
 
403
        r2 = bzrdir.BzrDirFormat6().initialize('r2')
 
404
        inter_repo = repository.InterRepository.get(r1.open_repository(), 
 
405
                r2.open_repository())
 
406
        self.assertIsInstance(inter_repo, repository.InterWeaveRepo)
397
407
 
398
408
class TestRepositoryConverter(TestCaseWithTransport):
399
409