/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Aaron Bentley
  • Date: 2006-05-20 17:51:13 UTC
  • mfrom: (1718 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1727.
  • Revision ID: aaron.bentley@utoronto.ca-20060520175113-4549e0023f9210bf
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
                           )
31
31
import bzrlib.repository as repository
32
32
from bzrlib.tests import TestCase, TestCaseWithTransport
33
 
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
34
33
from bzrlib.transport import get_transport
35
34
from bzrlib.transport.http import HttpServer
36
35
from bzrlib.transport.memory import MemoryServer
42
41
    def test_get_set_default_format(self):
43
42
        old_format = bzrdir.BzrDirFormat.get_default_format()
44
43
        # default is BzrDirFormat6
45
 
        self.failUnless(isinstance(old_format, bzrdir.BzrDirFormat6))
 
44
        self.failUnless(isinstance(old_format, bzrdir.BzrDirMetaFormat1))
46
45
        bzrdir.BzrDirFormat.set_default_format(SampleBzrDirFormat())
47
46
        # creating a bzr dir should now create an instrumented dir.
48
47
        try:
464
463
            self.assertTrue(dir.needs_format_conversion())
465
464
        finally:
466
465
            bzrdir.BzrDirFormat.set_default_format(old_format)
467
 
        self.assertFalse(dir.needs_format_conversion())
468
466
 
469
467
 
470
468
class NonLocalTests(TestCaseWithTransport):