~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Adrian Wilkins
  • Date: 2008-05-21 11:40:35 UTC
  • mto: This revision was merged to the branch mainline in revision 3476.
  • Revision ID: adrian.wilkins@gmail.com-20080521114035-bkrlr55bo5s3vfog
Simplified and fixed test code
 * non_ascii tests updated for ``added`` and ``modified``
 * Removed all dependence on osutils module by using literals

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
        self.build_tree_contents([(fname, 'modified\n')])
363
363
 
364
364
        txt = self.run_bzr_decode('modified')
365
 
        self.assertEqual(fname+'\n', txt)
 
365
        self.assertEqual('"'+fname+'"'+'\n', txt)
366
366
 
367
367
        self.run_bzr_decode('modified', encoding='ascii', fail=True)
368
368
 
372
372
        self.wt.add(fname)
373
373
 
374
374
        txt = self.run_bzr_decode('added')
375
 
        self.assertEqual(fname+'\n', txt)
 
375
        self.assertEqual('"'+fname+'"'+'\n', txt)
376
376
 
377
377
        self.run_bzr_decode('added', encoding='ascii', fail=True)
378
378
 
439
439
 
440
440
        # TODO: jam 20060112 bzr unknowns is the only one which 
441
441
        #       quotes paths do we really want it to?
 
442
        #       awilkins 20080521 added and modified do it now as well
442
443
        txt = self.run_bzr_decode('unknowns')
443
444
        self.assertEqual(u'"%s"\n' % (fname,), txt)
444
445