~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_controldir/test_controldir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-20 22:42:34 UTC
  • mfrom: (6083.1.2 more-get-transport-from)
  • Revision ID: pqm@pqm.ubuntu.com-20110820224234-l0c0cmesdnfp2srq
(jelmer) Use get_transport_from_path and get_transport_from_url in more
 places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1120
1120
        # test the formats specific behaviour for no-content or similar dirs.
1121
1121
        self.assertRaises(errors.NotBranchError,
1122
1122
                          self.bzrdir_format.open,
1123
 
                          transport.get_transport(self.get_readonly_url()))
 
1123
                          transport.get_transport_from_url(self.get_readonly_url()))
1124
1124
 
1125
1125
    def test_create_branch(self):
1126
1126
        # a bzrdir can construct a branch and repository for itself.
1637
1637
        # - do the vfs initialisation over the basic vfs transport
1638
1638
        # XXX: TODO this should become a 'bzrdirlocation' api call.
1639
1639
        url = self.get_vfs_only_url('subdir')
1640
 
        transport.get_transport(self.get_vfs_only_url()).mkdir('subdir')
 
1640
        transport.get_transport_from_url(self.get_vfs_only_url()).mkdir('subdir')
1641
1641
        made_control = self.bzrdir_format.initialize(self.get_url('subdir'))
1642
1642
        try:
1643
1643
            repo = made_control.open_repository()