~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

Fixed deprecated op use in test suite

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
import os
18
 
from bzrlib.branch import Branch
 
18
 
 
19
from bzrlib.bzrdir import BzrDir
19
20
from bzrlib.errors import (DuplicateKey, MalformedTransform, NoSuchFile,
20
21
                           ReusingTransform, CantMoveRoot, NotVersionedError,
21
22
                           ExistingLimbo, ImmortalLimbo, LockError)
29
30
class TestTreeTransform(TestCaseInTempDir):
30
31
    def setUp(self):
31
32
        super(TestTreeTransform, self).setUp()
32
 
        self.branch = Branch.initialize('.')
33
 
        self.wt = self.branch.working_tree()
 
33
        self.wt = BzrDir.create_standalone_workingtree('.')
34
34
        os.chdir('..')
35
35
 
36
36
    def get_transform(self):
479
479
    def __init__(self, dirname):
480
480
        self.name = dirname
481
481
        os.mkdir(dirname)
482
 
        self.b = Branch.initialize(dirname)
483
 
        self.wt = self.b.working_tree()
 
482
        self.wt = BzrDir.create_standalone_workingtree(dirname)
 
483
        self.b = self.wt.branch
484
484
        self.tt = TreeTransform(self.wt)
485
485
        self.root = self.tt.trans_id_tree_file_id(self.wt.get_root_id())
486
486