~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2006-04-19 07:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 1675.
  • Revision ID: mbp@sourcefrog.net-20060419071605-51207e739c997442
Give a clear error for bzr status of an unversioned, nonexistent file. (Malone #3619)

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
                           '  dir2\n'
179
179
                           ])
180
180
 
 
181
    def test_status_nonexistent_file(self):
 
182
        # files that don't exist in either the basis tree or working tree
 
183
        # should give an error
 
184
        wt = self.make_branch_and_tree('.')
 
185
        out, err = self.run_bzr('status', 'does-not-exist', retcode=3)
 
186
        self.assertContainsRe(err, r'do not exist.*does-not-exist')
 
187
 
 
188
 
181
189
class CheckoutStatus(BranchStatus):
182
190
 
183
191
    def setUp(self):