~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Martin Pool
  • Date: 2006-01-13 09:57:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060113095713-1fa5912229a3898e
Review updates of pycurl transport

Split them out into 

  bzrlib.transport.http             common base
  bzrlib.transport.http._urllib     pure python
  bzrlib.transport.http._pycurl     calls pycurl

Update to work with robert's nice transport test multiplexer.

Add PyCurlTransport.has() which does just a HEAD request; should be faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# (C) 2005 Canonical
2
2
 
 
3
# FIXME: This test should be repeated for each available http client
 
4
# implementation; at the moment we have urllib and pycurl.
 
5
 
3
6
from bzrlib.tests import TestCase
4
 
from bzrlib.transport.http import HttpTransport, extract_auth
 
7
from bzrlib.transport.http import extract_auth
 
8
from bzrlib.transport.http._urllib import HttpTransport
5
9
 
6
10
class FakeManager (object):
7
11
    def __init__(self):