Class e.p.h.t.t.TestElisaHttpClientPipelining(TestCase, SetupServerMixin):

Part of elisa.plugins.http_client.tests.test_http_client View In Hierarchy

This test case tests the ElisaHttpClient class with pipelining.
Line # Kind Name Docs
662 Method setUp Undocumented
665 Method tearDown Undocumented
668 Method test_single_request Test a single request and validate the response code.
680 Method test_response_contents Test the actual contents of the response returned by the server.
707 Method test_large_response_contents Test that a 'large' resource is completely read.
728 Method test_consecutive_same_uri Test two consecutive requests on the same URI.
756 Method test_consecutive_different_uris Test two consecutive requests on different URIs.
785 Method test_consecutive_with_close Test two consecutive requests on different URIs with the server closing
816 Method test_pipeline_with_close Test the pipelining with three requests. The first request returns OK,
861 Method test_cancel_request Test that cancelling a request works.
901 Method test_cancel_already_cancelled_request Test cancelling an already cancelled request.

Inherited from SetupServerMixin:

Line # Kind Name Docs
193 Method setUpClass Undocumented
198 Method tearDownClass Undocumented
def setUp(self):
Undocumented
def tearDown(self):
Undocumented
def test_single_request(self):
Test a single request and validate the response code.
def test_response_contents(self):
Test the actual contents of the response returned by the server.
def test_large_response_contents(self):
Test that a 'large' resource is completely read.
def test_consecutive_same_uri(self):
Test two consecutive requests on the same URI.
def test_consecutive_different_uris(self):
Test two consecutive requests on different URIs.
def test_consecutive_with_close(self):
Test two consecutive requests on different URIs with the server closing the connection after replying to the first request. This tests that the client correctly restores the connection if needed.
def test_pipeline_with_close(self):
Test the pipelining with three requests. The first request returns OK, the second request returns OBJECT MOVED and closes the connection, and the third request returns OK. This checks that our client correctly reconnects if for some reason the server closes the connection in the middle of a pipeline
def test_cancel_request(self):
Test that cancelling a request works.
def test_cancel_already_cancelled_request(self):
Test cancelling an already cancelled request.
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.