~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_init.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-18 05:23:03 UTC
  • mfrom: (1666.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060418052303-2170dd38c5ed278b
Fix and test upgrades from bzrdir 6 over SFTP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
class TestInit(ExternalBase):
28
28
 
29
29
    def test_init_with_format(self):
30
 
        """Verify bzr init --format constructs something plausible"""
 
30
        # Verify bzr init --format constructs something plausible
31
31
        t = self.get_transport()
32
32
        self.runbzr('init --format metadir')
33
33
        self.assertIsDirectory('.bzr', t)
34
34
        self.assertIsDirectory('.bzr/checkout', t)
35
35
        self.assertIsDirectory('.bzr/checkout/lock', t)
36
36
 
 
37
    def test_init_weave(self):
 
38
        # --format=weave should be accepted to allow interoperation with
 
39
        # old releases when desired.
 
40
        out, err = self.run_bzr('init', '--format=weave')
 
41
        self.assertEqual('', out)
 
42
        self.assertEqual('', err)
 
43
 
37
44
    def test_init_at_repository_root(self):
38
45
        # bzr init at the root of a repository should create a branch
39
46
        # and working tree even when creation of working trees is disabled.