~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2007-09-20 22:58:47 UTC
  • mfrom: (2776.4.12 commit)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20070920225847-q6kfq6cqkc331w2b
Merge various bzr.dev improvements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
308
308
                               ('c', 'c-id')], tree)
309
309
        self.assertTreeLayout([('', root_id), ('a', 'a-id'), ('c', 'c-id'),
310
310
                               ('a/b', 'b-id')], tree.basis_tree())
 
311
 
 
312
    def test_rename_to_denormalised_fails(self):
 
313
        tree = self.make_branch_and_tree('.')
 
314
        self.build_tree(['a'])
 
315
        tree.add(['a'])
 
316
        self.assertRaises((errors.InvalidNormalization, UnicodeEncodeError),
 
317
            tree.rename_one, 'a', u'b\xb5rry')