~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree_4.py

  • Committer: Ian Clatworthy
  • Date: 2007-09-21 01:00:21 UTC
  • mfrom: (2825.6.1 rename_one)
  • mto: This revision was merged to the branch mainline in revision 2843.
  • Revision ID: ian.clatworthy@internode.on.net-20070921010021-mr4nx4o0vrvhwu4r
Make WorkingTree.rename_one honour our normalisation requirements (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
        tree.add(['b'], ['b-id'])
420
420
 
421
421
        try:
422
 
            tree.rename_one('a', u'b\xb5rry')
423
 
            new_path = u'b\xb5rry'
 
422
            new_path = u'b\u03bcrry'
 
423
            tree.rename_one('a', new_path)
424
424
        except UnicodeEncodeError:
425
425
            # support running the test on non-unicode platforms
426
 
            tree.rename_one('a', 'c')
427
426
            new_path = 'c'
 
427
            tree.rename_one('a', new_path)
428
428
        self.assertEqual(new_path, tree.id2path('a-id'))
429
429
        tree.commit(u'b\xb5rry')
430
430
        tree.unversion(['a-id'])