~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_paths2ids.py

  • Committer: Martin Packman
  • Date: 2012-01-05 09:50:04 UTC
  • mfrom: (6424 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6426.
  • Revision ID: martin.packman@canonical.com-20120105095004-mia9xb7y0efmto0v
Merge bzr.dev to resolve conflicts in bzrlib.builtins

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from operator import attrgetter
25
25
 
26
26
from bzrlib import errors
 
27
from bzrlib.tests import features
27
28
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
28
29
 
29
30
 
188
189
            ['unversioned'], [tree])
189
190
        basis.unlock()
190
191
        tree.unlock()
 
192
 
 
193
    def test_unversioned_non_ascii_one_tree(self):
 
194
        self.requireFeature(features.UnicodeFilenameFeature)
 
195
        tree = self.make_branch_and_tree('.')
 
196
        self.build_tree([u"\xa7"])
 
197
        self.assertExpectedIds([], tree, [u"\xa7"], require_versioned=False)
 
198
        self.addCleanup(tree.lock_read().unlock)
 
199
        e = self.assertRaises(errors.PathsNotVersionedError,
 
200
            tree.paths2ids, [u"\xa7"])
 
201
        self.assertEqual([u"\xa7"], e.paths)