~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2006-07-05 21:03:58 UTC
  • mto: This revision was merged to the branch mainline in revision 1849.
  • Revision ID: jelmer@samba.org-20060705210358-9d755aa12b8f528d
Add more tests for create_repository().

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        repo = bzrdir.BzrDir.create_repository('.', shared=True)
169
169
        self.assertTrue(repo.is_shared())
170
170
 
 
171
    def test_create_repository_nonshared(self):
 
172
        old_format = bzrdir.BzrDirFormat.get_default_format()
 
173
        repo = bzrdir.BzrDir.create_repository('.')
 
174
        self.assertFalse(repo.is_shared())
 
175
 
171
176
    def test_create_repository_under_shared(self):
172
177
        # an explicit create_repository always does so.
173
178
        # we trust the format is right from the 'create_repository test'