/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/blackbox/test_mv.py

  • Committer: Robert Collins
  • Date: 2008-02-13 03:30:01 UTC
  • mfrom: (3221 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3224.
  • Revision ID: robertc@robertcollins.net-20080213033001-rw70ul0zb02ph856
Merge to fix conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        os.chdir('..')
125
125
        self.assertMoved('sub1/sub2/hello.txt','sub1/hello.txt')
126
126
 
 
127
    def test_mv_change_case(self):
 
128
        # test for bug #77740 (mv unable change filename case on Windows)
 
129
        tree = self.make_branch_and_tree('.')
 
130
        self.build_tree(['test.txt'])
 
131
        tree.add(['test.txt'])
 
132
        self.run_bzr('mv test.txt Test.txt')
 
133
        # we can't use failUnlessExists on case-insensitive filesystem
 
134
        # so try to check shape of the tree
 
135
        shape = sorted(os.listdir(u'.'))
 
136
        self.assertEqual(['.bzr', 'Test.txt'], shape)
 
137
        self.assertInWorkingTree('Test.txt')
 
138
        self.assertNotInWorkingTree('test.txt')
 
139
 
127
140
    def test_mv_smoke_aliases(self):
128
141
        # just test that aliases for mv exist, if their behaviour is changed in
129
142
        # the future, then extend the tests.