~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        os.chdir('branch1')
39
39
        self.run_bzr('remove-tree')
40
40
        self.failIfExists('foo')
41
 
    
 
41
 
42
42
    def test_remove_tree_original_branch_explicit(self):
43
43
        self.run_bzr('remove-tree branch1')
44
44
        self.failIfExists('branch1/foo')
49
49
        os.chdir('branch2')
50
50
        self.run_bzr('remove-tree')
51
51
        self.failIfExists('foo')
52
 
    
 
52
 
53
53
    def test_remove_tree_sprouted_branch_explicit(self):
54
54
        self.tree.bzrdir.sprout('branch2')
55
55
        self.failUnlessExists('branch2/foo')
64
64
        self.failIfExists('foo')
65
65
        os.chdir('..')
66
66
        self.failUnlessExists('branch1/foo')
67
 
    
 
67
 
68
68
    def test_remove_tree_checkout_explicit(self):
69
69
        self.tree.branch.create_checkout('branch2', lightweight=False)
70
70
        self.failUnlessExists('branch2/foo')
84
84
        self.failUnlessExists('foo')
85
85
        os.chdir('..')
86
86
        self.failUnlessExists('branch1/foo')
87
 
    
 
87
 
88
88
    def test_remove_tree_lightweight_checkout_explicit(self):
89
89
        self.tree.branch.create_checkout('branch2', lightweight=True)
90
90
        self.failUnlessExists('branch2/foo')