~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_mv.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-12 21:35:15 UTC
  • mto: This revision was merged to the branch mainline in revision 3008.
  • Revision ID: bialix@ukr.net-20071112213515-oteyfud32v1yzgrl
teach fancy_rename to handle change case renames in possible case-insensitive filesystem

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Test for 'bzr mv'"""
18
18
 
19
19
import os
20
 
import sys
21
20
 
22
21
from bzrlib import (
23
22
    osutils,
27
26
from bzrlib.tests import (
28
27
    SymlinkFeature,
29
28
    TestCaseWithTransport,
30
 
    TestSkipped,
31
29
    )
32
30
 
33
31
 
126
124
        os.chdir('..')
127
125
        self.assertMoved('sub1/sub2/hello.txt','sub1/hello.txt')
128
126
 
129
 
    def test_mv_win32_change_case(self):
130
 
        if sys.platform != 'win32':
131
 
            raise TestSkipped('Test require case insensitive filesystem')
 
127
    def test_mv_change_case(self):
 
128
        # test for bug #77740 (mv unable change filename case on Windows)
132
129
        tree = self.make_branch_and_tree('.')
133
130
        self.build_tree(['test.txt'])
134
131
        tree.add(['test.txt'])
135
132
        self.run_bzr('mv test.txt Test.txt')
136
 
        # we can't use failUnlessExists so try to check shape of the tree
 
133
        # we can't use failUnlessExists on case-insensitive filesystem
 
134
        # so try to check shape of the tree
137
135
        shape = sorted(os.listdir(u'.'))
138
136
        self.assertEqual(['.bzr', 'Test.txt'], shape)
139
137
        self.assertInWorkingTree('Test.txt')