~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-01-07 16:15:44 UTC
  • mto: (1685.1.1 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060107161544-d3c83f9c6ea27eb6
Updated cmd_added, which obviously had no tests, because it had a bug in it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
392
392
        # which might be used by a front end
393
393
        bzr('modified', encoding='ascii', retcode=3)
394
394
 
 
395
    def test_added(self):
 
396
        bzr = self.run_bzr_decode
 
397
 
 
398
        fname = self.juju + '2.txt'
 
399
        open(fname, 'wb').write('added\n')
 
400
        bzr('add', fname)
 
401
 
 
402
        txt = bzr('added')
 
403
        self.assertEqual(fname+'\n', txt)
 
404
 
 
405
        # added should fail if cannot decode
 
406
        # Because it is giving the exact paths
 
407
        # which might be used by a front end
 
408
        bzr('added', encoding='ascii', retcode=3)
 
409