/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: Aaron Bentley
  • Date: 2007-01-20 01:44:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2241.
  • Revision ID: aaron.bentley@utoronto.ca-20070120014446-2znre037lrj823cd
Cleanup formatting and error handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    osutils,
23
23
    workingtree,
24
24
    )
 
25
 
25
26
from bzrlib.tests import (
26
27
    TestCaseWithTransport,
27
28
    TestSkipped,
28
29
    )
29
 
from bzrlib.osutils import (
30
 
    splitpath
31
 
    )
 
30
 
32
31
 
33
32
class TestMove(TestCaseWithTransport):
34
33
 
86
85
 
87
86
    def test_mv_unqualified(self):
88
87
        self.run_bzr_error(['^bzr: ERROR: missing file argument$'], 'mv')
89
 
 
 
88
        
90
89
    def test_mv_invalid(self):
91
90
        tree = self.make_branch_and_tree('.')
92
91
        self.build_tree(['test.txt', 'sub1/'])
100
99
            ["^bzr: ERROR: Could not move test.txt => .*hello.txt: "
101
100
             "sub1 is not versioned$"],
102
101
            'mv', 'test.txt', 'sub1/hello.txt')
103
 
 
 
102
        
104
103
    def test_mv_dirs(self):
105
104
        tree = self.make_branch_and_tree('.')
106
105
        self.build_tree(['hello.txt', 'sub1/'])
369
368
        self.failUnlessExists('sub/a1')
370
369
        self.failUnlessExists('sub/a2')
371
370
        self.assertInWorkingTree('sub/a1')
372
 
        self.assertInWorkingTree('sub/a2')
 
 
b'\\ No newline at end of file'
 
371
        self.assertInWorkingTree('sub/a2')