807
807
return LocalTransport(u'.')
810
class HttpTransportTest(TestCaseWithWebserver, TestTransportMixIn):
810
class UrllibHttpTransportTest(TestCaseWithWebserver, TestTransportMixIn):
811
"""Test urllib client against webserver"""
814
815
def get_transport(self):
815
from bzrlib.transport.http import HttpTransport
816
from bzrlib.transport.http._urllib import HttpTransport
816
817
url = self.get_remote_url(u'.')
817
818
return HttpTransport(url)
819
820
def get_bogus_transport(self):
820
from bzrlib.transport.http import HttpTransport
821
from bzrlib.transport.http._urllib import HttpTransport
821
822
return HttpTransport('http://jasldkjsalkdjalksjdkljasd')
825
class PyCurlTransportTest(TestCaseWithWebserver, TestTransportMixIn):
826
"""Test pycurl client against webserver"""
830
def get_transport(self):
831
from bzrlib.transport.http._pycurl import PyCurlTransport
832
url = self.get_remote_url(u'.')
833
return PyCurlTransport(url)
835
def get_bogus_transport(self):
836
from bzrlib.transport.http._pycurl import PyCurlTransport
837
return PyCurlTransport('http://jasldkjsalkdjalksjdkljasd')
824
840
class TestMemoryTransport(TestCase):
826
842
def test_get_transport(self):