/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/blackbox/test_init.py

  • Committer: Matthieu Moy
  • Date: 2006-07-08 19:32:30 UTC
  • mfrom: (1845 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1857.
  • Revision ID: Matthieu.Moy@imag.fr-20060708193230-3eb72d871471bd5b
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        
71
71
        out, err = self.run_bzr('init', 'subdir2/nothere', retcode=3)
72
72
        self.assertEqual('', out)
73
 
        self.failUnless(err.startswith(
74
 
            'bzr: ERROR: exceptions.OSError: '
75
 
            '[Errno 2] No such file or directory: '))
 
73
        self.assertContainsRe(err,
 
74
            r'^bzr: ERROR: .*'
 
75
            '\[Errno 2\] No such file or directory: ')
76
76
        
77
77
        os.mkdir('subdir2')
78
78
        out, err = self.run_bzr('init', 'subdir2')
100
100
        # suggests using checkout
101
101
        self.assertContainsRe(err, 'ontains a branch.*but no working tree.*checkout')
102
102
 
 
103
    def test_no_defaults(self):
 
104
        """Init creates no default ignore rules."""
 
105
        self.run_bzr('init')
 
106
        self.assertFalse(os.path.exists('.bzrignore'))