~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

Branch now uses BzrDir reasonably sanely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# (C) 2005 Canonical Ltd
 
1
# (C) 2005,2006 Canonical Ltd
2
2
# Authors:  Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
20
20
 
21
21
import bzrlib
22
22
from bzrlib.branch import Branch
 
23
from bzrlib.bzrdir import BzrDir
23
24
import bzrlib.errors as errors
24
25
from bzrlib.errors import NotBranchError, NotVersionedError
25
26
from bzrlib.tests import TestCaseWithTransport
184
185
    def test_checkout(self):
185
186
        # at this point as we dont have checkout versions, checkout simply
186
187
        # populates the required files for a working tree at the dir.
187
 
        self.build_tree(['branch/'])
188
 
        b = Branch.create('branch')
 
188
        b = BzrDir.create_branch_and_repo('branch')
189
189
        t = WorkingTree.create(b, 'tree')
190
190
        # as we are moving the ownership to working tree, we will check here
191
191
        # that its split out correctly