class documentation

class ContentTests(TestCase): (source)

View In Hierarchy

Undocumented

Method setUp Undocumented
Method test_collect Undocumented
Method test_collect_0_length Undocumented
Method test_collect_failure Undocumented
Method test_collect_failure_potential_data_loss PotentialDataLoss failures are treated as success.
Method test_content Undocumented
Method test_content_application_json_default_encoding Undocumented
Method test_content_cached Undocumented
Method test_content_multiple_waiters Undocumented
Method test_json_content Undocumented
Method test_json_content_unicode When Unicode JSON content is received, the JSON text should be correctly decoded. RFC7159 (8.1): "JSON text SHALL be encoded in UTF-8, UTF-16, or UTF-32. The default encoding is UTF-8"
Method test_json_content_utf16 JSON received is decoded according to the charset given in the Content-Type header.
Method test_text_content Undocumented
Method test_text_content_default_encoding_no_header Undocumented
Method test_text_content_default_encoding_no_param Undocumented
Method test_text_content_unicode_headers Header parsing is robust against unicode header names and values.
Instance Variable protocol Undocumented
Instance Variable response Undocumented
def setUp(self): (source)

Undocumented

def test_collect(self): (source)

Undocumented

def test_collect_0_length(self): (source)

Undocumented

def test_collect_failure(self): (source)

Undocumented

def test_collect_failure_potential_data_loss(self): (source)

PotentialDataLoss failures are treated as success.

def test_content(self): (source)

Undocumented

def test_content_application_json_default_encoding(self): (source)

Undocumented

def test_content_cached(self): (source)

Undocumented

def test_content_multiple_waiters(self): (source)

Undocumented

def test_json_content(self): (source)

Undocumented

def test_json_content_unicode(self): (source)

When Unicode JSON content is received, the JSON text should be correctly decoded. RFC7159 (8.1): "JSON text SHALL be encoded in UTF-8, UTF-16, or UTF-32. The default encoding is UTF-8"

def test_json_content_utf16(self): (source)

JSON received is decoded according to the charset given in the Content-Type header.

def test_text_content(self): (source)

Undocumented

def test_text_content_default_encoding_no_header(self): (source)

Undocumented

def test_text_content_default_encoding_no_param(self): (source)

Undocumented

def test_text_content_unicode_headers(self): (source)

Header parsing is robust against unicode header names and values.

protocol = (source)

Undocumented

response = (source)

Undocumented