~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Jelmer Vernooij
  • Date: 2012-04-02 01:44:26 UTC
  • mfrom: (6518 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120402014426-0o5qtysohyl006b2
merge bzr.dev.

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())