~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-19 08:31:08 UTC
  • mfrom: (1666.1.5 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060419083108-fab2970f4575b010
Change the default branch format to be metadir. (Robert Collins, Aaron Bentley).

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    def test_get_set_default_format(self):
42
42
        old_format = bzrdir.BzrDirFormat.get_default_format()
43
43
        # default is BzrDirFormat6
44
 
        self.failUnless(isinstance(old_format, bzrdir.BzrDirFormat6))
 
44
        self.failUnless(isinstance(old_format, bzrdir.BzrDirMetaFormat1))
45
45
        bzrdir.BzrDirFormat.set_default_format(SampleBzrDirFormat())
46
46
        # creating a bzr dir should now create an instrumented dir.
47
47
        try:
463
463
            self.assertTrue(dir.needs_format_conversion())
464
464
        finally:
465
465
            bzrdir.BzrDirFormat.set_default_format(old_format)
466
 
        self.assertFalse(dir.needs_format_conversion())
467
466
 
468
467
 
469
468
class NonLocalTests(TestCaseWithTransport):