/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_parents.py

  • Committer: Daniel Clemente
  • Date: 2008-10-17 09:15:25 UTC
  • mto: This revision was merged to the branch mainline in revision 3862.
  • Revision ID: dcl441-bugs@yahoo.com-20081017091525-cwlnn4e7qj05k92c
Tested Unicode target rather than always trying to create it in UTF-8. Test renamed

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
                            (rev3, rev_tree3)])
229
229
        self.assertConsistentParents([rev2, rev3], t)
230
230
 
231
 
    def test_utf8_symlink(self):
 
231
    def test_unicode_symlink(self):
232
232
        # this tests bug #272444
233
233
        self.requireFeature(SymlinkFeature)
234
234
        self.requireFeature(UnicodeFilenameFeature)
235
235
 
236
236
        tree = self.make_branch_and_tree('tree1')
237
237
 
238
 
        # 'adiós' ('goodbye' in Spanish) in utf-8
239
 
        os.symlink('adi\xc3\xb3s','tree1/link_name')
 
238
        # 'adiós' ('goodbye' in Spanish) as unicode
 
239
        # 'ó' is \xf3 in unicode and \xc3\xb3 in a utf-8 string
 
240
        os.symlink(u'adi\xf3s','tree1/link_name')
240
241
        tree.add(['link_name'],['link-id'])
241
 
        revision = tree.commit('added a link to an utf-8 target')
 
242
        revision = tree.commit('added a link to a Unicode target')
242
243
 
243
244
        try:
244
245
            tree.set_parent_ids([revision])