~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-04 22:23:20 UTC
  • mfrom: (5825 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5830.
  • Revision ID: jelmer@samba.org-20110504222320-bczsppms2wadcrb4
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    transport as _mod_transport,
39
39
    urlutils,
40
40
    win32utils,
41
 
    workingtree,
 
41
    workingtree_3,
42
42
    )
43
43
import bzrlib.branch
44
44
from bzrlib.errors import (
807
807
        branch = self.make_branch('branch', format='knit')
808
808
        format = branch.bzrdir.cloning_metadir()
809
809
        self.assertIsInstance(format.workingtree_format,
810
 
            workingtree.WorkingTreeFormat3)
 
810
            workingtree_3.WorkingTreeFormat3)
811
811
 
812
812
    def test_sprout_recursive_treeless(self):
813
813
        tree = self.make_branch_and_tree('tree1',
963
963
        checkout_base = t.clone('checkout').base
964
964
        self.assertEqual(checkout_base, dir.get_workingtree_transport(None).base)
965
965
        self.assertEqual(checkout_base,
966
 
                         dir.get_workingtree_transport(workingtree.WorkingTreeFormat3()).base)
 
966
                         dir.get_workingtree_transport(workingtree_3.WorkingTreeFormat3()).base)
967
967
 
968
968
    def test_meta1dir_uses_lockdir(self):
969
969
        """Meta1 format uses a LockDir to guard the whole directory, not a file."""
1057
1057
        my_bzrdir = bzrdir.BzrDir.open(self.get_url('branch-knit2'))
1058
1058
        checkout_format = my_bzrdir.checkout_metadir()
1059
1059
        self.assertIsInstance(checkout_format.workingtree_format,
1060
 
                              workingtree.WorkingTreeFormat3)
 
1060
                              workingtree_3.WorkingTreeFormat3)
1061
1061
 
1062
1062
 
1063
1063
class TestHTTPRedirections(object):