The test_requests Module

Tests for Requests.

class cloudfusion.third_party.requests_1_2_3.test_requests.RequestsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

_multiprocess_can_split_ = True
setUp()

Create simple data set with headers.

tearDown()

Teardown.

test_BASICAUTH_TUPLE_HTTP_200_OK_GET()
test_DIGESTAUTH_WRONG_HTTP_401_GET()
test_DIGEST_HTTP_200_OK_GET()
test_DIGEST_STREAM()
test_HTTP_200_OK_GET_ALTERNATIVE()
test_HTTP_200_OK_GET_WITH_MIXED_PARAMS()
test_HTTP_200_OK_GET_WITH_PARAMS()
test_HTTP_200_OK_HEAD()
test_HTTP_200_OK_PUT()
test_HTTP_302_ALLOW_REDIRECT_GET()
test_POSTBIN_GET_POST_FILES()
test_POSTBIN_GET_POST_FILES_WITH_DATA()
test_basic_building()
test_cannot_send_unprepared_requests()
test_custom_content_type()
test_decompress_gzip()
test_different_encodings_dont_break_post()
test_entry_points()
test_fixes_1329()

Ensure that header updates are done case-insensitively.

test_generic_cookiejar_works()
test_get_auth_from_url()
test_header_remove_is_case_insensitive()
test_hook_receives_request_arguments()
test_http_error()
test_invalid_url()
test_long_authinfo_in_url()
test_no_content_length()
test_params_are_added_before_fragment()
test_params_are_merged_case_sensitive()
test_path_is_not_double_encoded()
test_prepared_request_hook()
test_request_ok_set()
test_response_is_iterable()
test_session_pickling()
test_status_raising()
test_time_elapsed_blank()
test_transport_adapter_ordering()
test_unicode_get()
test_unicode_header_name()
test_unicode_multipart_post()
test_unicode_multipart_post_fieldnames()
test_urlencoded_get_query_multivalued_param()
test_user_agent_transfers()
class cloudfusion.third_party.requests_1_2_3.test_requests.TestCaseInsensitiveDict(methodName='runTest')

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_contains()
test_delitem()
test_docstring_example()
test_equality()
test_fixes_649()

__setitem__ should behave case-insensitively.

test_get()
test_getitem()
test_iter()
test_iterable_init()
test_kwargs_init()
test_len()
test_lower_items()
test_mapping_init()
test_preserve_key_case()
test_preserve_last_key_case()
test_setdefault()
test_update()
test_update_retains_unchanged()
cloudfusion.third_party.requests_1_2_3.test_requests.httpbin(*suffix)

Returns url for HTTPBIN resource.

Table Of Contents

Previous topic

Subpackages

Next topic

Subpackages

This Page