~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

  • Committer: Andrew Bennetts
  • Date: 2006-08-10 01:52:46 UTC
  • mto: (2018.5.1 split-smart)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20060810015246-f155b70b3aecb0c4
Flesh out more Remote* methods needed to open and initialise remote branches/trees/repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
973
973
            # because the default open will not open them and
974
974
            # they may not be initializable.
975
975
            return
976
 
        # this has to be tested with local access as we still support creating 
 
976
        # this has to be tested with local access as we still support creating
977
977
        # format 6 bzrdirs
978
 
        t = get_transport('.')
979
 
        made_control = self.bzrdir_format.initialize(t.base)
980
 
        made_repo = made_control.create_repository()
981
 
        made_branch = made_control.create_branch()
982
 
        made_tree = made_control.create_workingtree()
 
978
        t = self.get_transport()
 
979
        try:
 
980
            made_control = self.bzrdir_format.initialize(t.base)
 
981
            made_repo = made_control.create_repository()
 
982
            made_branch = made_control.create_branch()
 
983
            made_tree = made_control.create_workingtree()
 
984
        except errors.NotLocalUrl:
 
985
            raise TestSkipped("Can't initialize %r on transport %r"
 
986
                              % (self.bzrdir_format, t))
983
987
        opened_tree = made_control.open_workingtree()
984
988
        self.assertEqual(made_control, opened_tree.bzrdir)
985
989
        self.failUnless(isinstance(opened_tree, made_tree.__class__))