~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-06 19:49:19 UTC
  • mfrom: (6472.2.6 use-bzr-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20120306194919-kt7mj6xmhifsgees
(jelmer) Use bzrlib.controldir for generic access to control directories,
 rather than bzrlib.bzrdir. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
330
330
 
331
331
    def cloning_metadir(self, stacked=False):
332
332
        """Produce a metadir suitable for cloning with."""
333
 
        return bzrdir.format_registry.make_bzrdir("default")
 
333
        return controldir.format_registry.make_bzrdir("default")
334
334
 
335
335
    def checkout_metadir(self):
336
336
        return self.cloning_metadir()
446
446
    def test_create(self):
447
447
        """Test we can create dummies."""
448
448
        self.make_branch_and_tree("d", format=DummyForeignVcsDirFormat())
449
 
        dir = bzrdir.BzrDir.open("d")
 
449
        dir = controldir.ControlDir.open("d")
450
450
        self.assertEquals("A Dummy VCS Dir", dir._format.get_format_string())
451
451
        dir.open_repository()
452
452
        dir.open_branch()
455
455
    def test_sprout(self):
456
456
        """Test we can clone dummies and that the format is not preserved."""
457
457
        self.make_branch_and_tree("d", format=DummyForeignVcsDirFormat())
458
 
        dir = bzrdir.BzrDir.open("d")
 
458
        dir = controldir.ControlDir.open("d")
459
459
        newdir = dir.sprout("e")
460
460
        self.assertNotEquals("A Dummy VCS Dir",
461
461
                             newdir._format.get_format_string())