~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Robert Collins
  • Date: 2007-06-04 00:51:54 UTC
  • mfrom: (2504 +trunk)
  • mto: (2507.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 2505.
  • Revision ID: robertc@robertcollins.net-20070604005154-yvx2q8jnwiprw6du
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    ProxyDigestAuthServer,
59
59
    ProxyServer,
60
60
    SingleRangeRequestHandler,
 
61
    SingleOnlyRangeRequestHandler,
61
62
    TestCaseWithRedirectedWebserver,
62
63
    TestCaseWithTwoWebservers,
63
64
    TestCaseWithWebserver,
693
694
    """Tests single range requests accepting server for pycurl implementation"""
694
695
 
695
696
 
 
697
class TestSingleOnlyRangeRequestServer(TestRangeRequestServer):
 
698
    """Test readv against a server which only accept single range requests"""
 
699
 
 
700
    def create_transport_readonly_server(self):
 
701
        return HttpServer(SingleOnlyRangeRequestHandler)
 
702
 
 
703
 
 
704
class TestSingleOnlyRangeRequestServer_urllib(TestSingleOnlyRangeRequestServer,
 
705
                                              TestCaseWithWebserver):
 
706
    """Tests single range requests accepting server for urllib implementation"""
 
707
 
 
708
    _transport = HttpTransport_urllib
 
709
 
 
710
 
 
711
class TestSingleOnlyRangeRequestServer_pycurl(TestWithTransport_pycurl,
 
712
                                              TestSingleOnlyRangeRequestServer,
 
713
                                              TestCaseWithWebserver):
 
714
    """Tests single range requests accepting server for pycurl implementation"""
 
715
 
 
716
 
696
717
class TestNoRangeRequestServer(TestRangeRequestServer):
697
718
    """Test readv against a server which do not accept range requests"""
698
719