~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: 2010-10-12 10:43:30 UTC
  • mfrom: (5487.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20101012104330-tsonnndvloj18v4q
(vila) Add a --no-tree option for init and push (Matthew Gordon)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
 
18
 
"""Test "bzr init"""
 
18
"""Test 'bzr init'"""
19
19
 
20
20
import os
21
21
import re
173
173
        out, err = self.run_bzr_subprocess('init')
174
174
        self.assertContainsRe(out, '1.9')
175
175
 
 
176
    def test_init_no_tree(self):
 
177
        """'bzr init --no-tree' creates a branch with no working tree."""
 
178
        out, err = self.run_bzr('init --no-tree')
 
179
        self.assertStartsWith(out, 'Created a standalone branch')
 
180
 
176
181
 
177
182
class TestSFTPInit(TestCaseWithSFTPServer):
178
183
 
226
231
        out, err = self.run_bzr(['init', 'foo'])
227
232
        self.assertEqual(err, '')
228
233
        self.assertTrue(os.path.exists('foo'))
 
234