~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-08 06:38:32 UTC
  • mfrom: (1685.1.81 encoding)
  • Revision ID: pqm@pqm.ubuntu.com-20060608063832-74b46cf8fdd4567a
(jam,mbp,wvh) Lots of updates to unicode,url,and encoding support

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from bzrlib.transform import (TreeTransform, ROOT_PARENT, FinalPaths, 
29
29
                              resolve_conflicts, cook_conflicts, 
30
30
                              find_interesting, build_tree, get_backup_name)
 
31
import bzrlib.urlutils as urlutils
31
32
 
32
33
class TestTreeTransform(TestCaseInTempDir):
33
34
 
42
43
        return transform, transform.trans_id_tree_file_id(self.wt.get_root_id())
43
44
 
44
45
    def test_existing_limbo(self):
45
 
        limbo_name = self.wt._control_files.controlfilename('limbo')
 
46
        limbo_name = urlutils.local_path_from_url(
 
47
            self.wt._control_files.controlfilename('limbo'))
46
48
        transform, root = self.get_transform()
47
49
        os.mkdir(pathjoin(limbo_name, 'hehe'))
48
50
        self.assertRaises(ImmortalLimbo, transform.apply)