~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2011-07-23 16:33:38 UTC
  • mto: This revision was merged to the branch mainline in revision 6045.
  • Revision ID: jelmer@samba.org-20110723163338-mjox55g52kt3u922
Add get_transport_from_url and get_transport_from_path functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    pathfilter,
39
39
    readonly,
40
40
    )
 
41
import bzrlib.transport.trace
41
42
from bzrlib.tests import (
42
43
    features,
43
44
    test_server,
672
673
        base_url = self._server.get_url()
673
674
        url = self._adjust_url(base_url, relpath)
674
675
        # try getting the transport via the regular interface:
675
 
        t = transport.get_transport(url)
 
676
        t = transport.get_transport_from_url(url)
676
677
        # vila--20070607 if the following are commented out the test suite
677
678
        # still pass. Is this really still needed or was it a forgotten
678
679
        # temporary fix ?
842
843
 
843
844
class TestTransportTrace(tests.TestCase):
844
845
 
845
 
    def test_get(self):
 
846
    def test_decorator(self):
846
847
        t = transport.get_transport('trace+memory://')
847
848
        self.assertIsInstance(
848
849
            t, bzrlib.transport.trace.TransportTraceDecorator)