~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/transport_util.py

  • Committer: Robert Collins
  • Date: 2010-05-06 07:48:22 UTC
  • mto: This revision was merged to the branch mainline in revision 5223.
  • Revision ID: robertc@robertcollins.net-20100506074822-0bsgf2j4h8jx0xkk
Added ``bzrlib.tests.matchers`` as a place to put matchers, along with
our first in-tree matcher. See the module docstring for details.
(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
import bzrlib.hooks
18
 
from bzrlib import transport
19
18
from bzrlib.tests import features
20
19
 
21
20
# SFTPTransport offers better performances but relies on paramiko, if paramiko
35
34
 
36
35
from bzrlib.transport import (
37
36
    ConnectedTransport,
 
37
    get_transport,
38
38
    register_transport,
39
39
    register_urlparse_netloc_protocol,
40
40
    unregister_transport,
111
111
        # standard test support code will work and permit the server url
112
112
        # correctly.
113
113
        url = self.get_url()
114
 
        t = transport.get_transport(url)
 
114
        t = get_transport(url)
115
115
        if t.base.endswith('work/'):
116
116
            t = t.clone('../..')
117
117
        self.permit_url(t.base)