/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_switch.py

  • Committer: Martin Pool
  • Date: 2010-04-28 07:03:38 UTC
  • mfrom: (5188 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5189.
  • Revision ID: mbp@sourcefrog.net-20100428070338-2af8y3takgfkrkyp
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import os
22
22
 
23
 
from bzrlib import osutils
24
23
from bzrlib.workingtree import WorkingTree
25
24
from bzrlib.tests.blackbox import ExternalBase
26
25
from bzrlib.directory_service import directories
168
167
    def prepare_lightweight_switch(self):
169
168
        branch = self.make_branch('branch')
170
169
        branch.create_checkout('tree', lightweight=True)
171
 
        osutils.rename('branch', 'branch1')
 
170
        os.rename('branch', 'branch1')
172
171
 
173
172
    def test_switch_lightweight_after_branch_moved(self):
174
173
        self.prepare_lightweight_switch()