Package elisa :: Package plugins :: Package http_client :: Package tests :: Module test_http_client :: Class TestElisaHttpClientRawData

Class TestElisaHttpClientRawData

source code


Tests that need the RawServer as they try to ensure the right behaviour according to the message length. See the RFC for more information: http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4

Instance Methods
 
setUp(self) source code
 
tearDown(self) source code
 
test_large_response_contents_without_specified_size(self)
Test that a 'large' resource is completely read even though the size is not specified.
source code
 
test_head_does_not_wait_for_content(self)
Sending a head to the server.
source code
 
test_no_content_does_not_wait_for_content(self)
A request that is answered with "no content".
source code
 
test_not_modified_does_not_wait_for_content(self)
A request that is answered with a "not modified".
source code

Inherited from twisted.trial.unittest.TestCase: __call__, __eq__, __init__, __ne__, addCleanup, callDeprecated, deferRunCleanups, deferSetUp, deferSetUpClass, deferTearDown, deferTearDownClass, deferTestMethod, flushLoggedErrors, flushWarnings, getSkip, getSuppress, getTimeout, getTodo, mktemp, patch, run, runTest, shortDescription, visit

Inherited from twisted.trial.unittest._Assertions: assertAlmostEqual, assertAlmostEquals, assertApproximates, assertEqual, assertEquals, assertFailure, assertFalse, assertIdentical, assertIn, assertIsInstance, assertNot, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIdentical, assertNotIn, assertNotIsInstance, assertNotSubstring, assertRaises, assertSubstring, assertTrue, assertWarns, assert_, fail, failIf, failIfAlmostEqual, failIfAlmostEquals, failIfEqual, failIfEquals, failIfIdentical, failIfIn, failIfIsInstance, failIfSubstring, failUnless, failUnlessAlmostEqual, failUnlessAlmostEquals, failUnlessApproximates, failUnlessEqual, failUnlessEquals, failUnlessFailure, failUnlessFalse, failUnlessIdentical, failUnlessIn, failUnlessIsInstance, failUnlessRaises, failUnlessSubstring, failUnlessTrue, failUnlessWarns

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  ssl_context = None
hash(x)
Instance Variables

Inherited from twisted.trial.unittest.TestCase: failureException, skip, suppress, timeout, todo

Properties

Inherited from object: __class__

Method Details

test_head_does_not_wait_for_content(self)

source code 

Sending a head to the server. As soon as the headers (and the empty line) are back the deferred should fire.

test_no_content_does_not_wait_for_content(self)

source code 

A request that is answered with "no content". As soon as the headers are here the callback should fire and there should not be any content at all.

test_not_modified_does_not_wait_for_content(self)

source code 

A request that is answered with a "not modified". As soon as the headers are here the callback should fire and there should be no content at all.