~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Wouter van Heyst
  • Date: 2006-06-07 16:05:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: larstiq@larstiq.dyndns.org-20060607160527-2b3649154d0e2e84
more code cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
327
327
        # TODO: jam 20060106 diff is a difficult one to test, because it 
328
328
        #       shouldn't encode the file contents, but it needs some sort
329
329
        #       of encoding for the paths, etc which are displayed.
330
 
        pass
 
330
        open(self.info['filename'], 'ab').write('newline\n')
 
331
        txt = self.run_bzr('diff', retcode=1)[0]
331
332
 
332
333
    def test_deleted(self):
333
334
        bzr = self.run_bzr_decode
419
420
                        % (fname, fname, fname2))
420
421
        self.assertEqual(expected_txt, txt)
421
422
 
422
 
        txt = bzr('touching-revisions', fname2, encoding='ascii')
423
 
        expected_ascii = expected_txt.encode('ascii', 'replace')
424
 
        self.assertEqual(expected_ascii, txt)
 
423
        bzr('touching-revisions', fname2, encoding='ascii', retcode=3)
425
424
 
426
425
    def test_ls(self):
427
426
        bzr = self.run_bzr_decode