Module Import alias Import alias Import alias ImportFrom alias alias alias alias alias alias alias FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str With Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameLoad body With Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list NameLoad With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Str decorator_list Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Str Num Str decorator_list NameLoad With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list NameLoad With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Dict Str Str Num Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Str decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return Str decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return Str decorator_list Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Num Str Dict Str Str keyword NameLoad decorator_list NameLoad With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str Str Num Num decorator_list NameLoad With Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Str Num Dict Str Str decorator_list Call NameLoad keyword Str With Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call NameLoad NameLoad decorator_list
N/A N/A requests N/A sys N/A unittest httmock all_requests response urlmatch with_httmock HTTMock text_type binary_type unmatched_scheme N/A N/A url request N/A N/A N/A N/A AssertionError This is outrageous N/A N/A urlmatch scheme swallow unmatched_path N/A N/A url request N/A N/A N/A N/A AssertionError This is outrageous N/A N/A urlmatch path ^never$ unmatched_method N/A N/A url request N/A N/A N/A N/A AssertionError This is outrageous N/A N/A urlmatch method post google_mock N/A N/A url request N/A N/A N/A Hello from Google N/A N/A urlmatch netloc (.*\.)?google\.com$ path ^/$ facebook_mock N/A N/A url request N/A N/A N/A Hello from Facebook N/A N/A urlmatch scheme http netloc (.*\.)?facebook\.com$ any_mock N/A N/A url request N/A N/A N/A N/A Hello from %s N/A N/A url netloc N/A dict_any_mock N/A N/A url request N/A N/A N/A N/A content status_code N/A Hello from %s N/A N/A url netloc 200 N/A example_400_response N/A N/A url response N/A N/A N/A r N/A N/A requests Response N/A N/A r status_code 400 N/A N/A r _content Bad request. N/A r N/A MockTest N/A N/A unittest TestCase N/A test_return_type N/A N/A self N/A N/A N/A N/A HTTMock any_mock N/A N/A r N/A N/A requests get http://domain.com/ N/A N/A N/A self assertTrue N/A isinstance r N/A requests Response N/A N/A N/A self assertTrue N/A isinstance N/A r content binary_type N/A N/A N/A self assertTrue N/A isinstance N/A r text text_type N/A test_scheme_fallback N/A N/A self N/A N/A N/A N/A HTTMock unmatched_scheme any_mock N/A N/A r N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A r content Hello from example.com N/A test_path_fallback N/A N/A self N/A N/A N/A N/A HTTMock unmatched_path any_mock N/A N/A r N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A r content Hello from example.com N/A test_method_fallback N/A N/A self N/A N/A N/A N/A HTTMock unmatched_method any_mock N/A N/A r N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A r content Hello from example.com N/A test_netloc_fallback N/A N/A self N/A N/A N/A N/A HTTMock google_mock facebook_mock N/A N/A r N/A N/A requests get http://google.com/ N/A N/A N/A self assertEqual N/A r content Hello from Google N/A N/A HTTMock google_mock facebook_mock N/A N/A r N/A N/A requests get http://facebook.com/ N/A N/A N/A self assertEqual N/A r content Hello from Facebook N/A test_400_response N/A N/A self N/A N/A N/A N/A HTTMock example_400_response N/A N/A r N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A r status_code 400 N/A N/A N/A self assertEqual N/A r content Bad request. N/A test_real_request_fallback N/A N/A self N/A N/A N/A N/A HTTMock any_mock N/A N/A N/A HTTMock google_mock facebook_mock N/A N/A r N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A r status_code 200 N/A N/A N/A self assertEqual N/A r content Hello from example.com N/A test_invalid_intercept_response_raises_value_error N/A N/A self N/A N/A response_content N/A N/A url request N/A N/A N/A -1 N/A all_requests N/A N/A HTTMock response_content N/A N/A N/A N/A self assertRaises TypeError N/A requests get http://example.com/ N/A N/A DecoratorTest N/A N/A unittest TestCase N/A test_decorator N/A N/A self N/A N/A N/A r N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A r content Hello from example.com N/A N/A with_httmock any_mock test_iter_lines N/A N/A self N/A N/A N/A r N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A list N/A N/A r iter_lines N/A Hello from example.com N/A N/A with_httmock any_mock N/A AllRequestsDecoratorTest N/A N/A unittest TestCase N/A test_all_requests_response N/A N/A self N/A N/A response_content N/A N/A url request N/A N/A N/A N/A status_code content 200 Oh hai N/A all_requests N/A N/A HTTMock response_content N/A N/A r N/A N/A requests get https://foo_bar N/A N/A N/A self assertEqual N/A r status_code 200 N/A N/A N/A self assertEqual N/A r content Oh hai N/A test_all_str_response N/A N/A self N/A N/A response_content N/A N/A url request N/A N/A N/A Hello N/A all_requests N/A N/A HTTMock response_content N/A N/A r N/A N/A requests get https://foo_bar N/A N/A N/A self assertEqual N/A r content Hello N/A N/A AllRequestsMethodDecoratorTest N/A N/A unittest TestCase N/A response_content N/A N/A self url request N/A N/A N/A N/A status_code content 200 Oh hai N/A all_requests test_all_requests_response N/A N/A self N/A N/A N/A N/A HTTMock N/A self response_content N/A N/A r N/A N/A requests get https://foo_bar N/A N/A N/A self assertEqual N/A r status_code 200 N/A N/A N/A self assertEqual N/A r content Oh hai N/A string_response_content N/A N/A self url request N/A N/A N/A Hello N/A all_requests test_all_str_response N/A N/A self N/A N/A N/A N/A HTTMock N/A self string_response_content N/A N/A r N/A N/A requests get https://foo_bar N/A N/A N/A self assertEqual N/A r content Hello N/A N/A UrlMatchMethodDecoratorTest N/A N/A unittest TestCase N/A google_mock N/A N/A self url request N/A N/A N/A Hello from Google N/A N/A urlmatch netloc (.*\.)?google\.com$ path ^/$ facebook_mock N/A N/A self url request N/A N/A N/A Hello from Facebook N/A N/A urlmatch scheme http netloc (.*\.)?facebook\.com$ query_page_mock N/A N/A self url request N/A N/A N/A Hello from test page N/A N/A urlmatch query .*page=test test_netloc_fallback N/A N/A self N/A N/A N/A N/A HTTMock N/A self google_mock facebook_mock N/A N/A r N/A N/A requests get http://google.com/ N/A N/A N/A self assertEqual N/A r content Hello from Google N/A N/A HTTMock N/A self google_mock facebook_mock N/A N/A r N/A N/A requests get http://facebook.com/ N/A N/A N/A self assertEqual N/A r content Hello from Facebook N/A test_query N/A N/A self N/A N/A N/A N/A HTTMock N/A self query_page_mock N/A self google_mock N/A N/A r N/A N/A requests get http://google.com/?page=test N/A r2 N/A N/A requests get http://google.com/ N/A N/A N/A self assertEqual N/A r content Hello from test page N/A N/A N/A self assertEqual N/A r2 content Hello from Google N/A N/A ResponseTest N/A N/A unittest TestCase N/A N/A content N/A name ipv4addr foo 127.0.0.1 N/A content_list N/A list N/A N/A content keys test_response_auto_json N/A N/A self N/A N/A N/A r N/A response 0 N/A self content N/A N/A N/A self assertTrue N/A isinstance N/A r content binary_type N/A N/A N/A self assertTrue N/A isinstance N/A r text text_type N/A N/A N/A self assertEqual N/A N/A r json N/A self content N/A r N/A response 0 N/A self content_list N/A N/A N/A self assertEqual N/A N/A r json N/A self content_list N/A test_response_status_code N/A N/A self N/A N/A N/A r N/A response 200 N/A N/A N/A self assertEqual N/A r status_code 200 N/A test_response_headers N/A N/A self N/A N/A N/A r N/A response 200 None N/A Content-Type application/json N/A N/A N/A self assertEqual N/A N/A r headers N/A content-type application/json N/A test_response_cookies N/A N/A self N/A N/A response_content N/A N/A url request N/A N/A N/A N/A response 200 Foo N/A Set-Cookie foo=bar; request request N/A all_requests N/A N/A HTTMock response_content N/A N/A r N/A N/A requests get https://foo_bar N/A N/A N/A self assertEqual N/A len N/A r cookies 1 N/A N/A N/A self assertTrue N/A foo N/A r cookies N/A N/A N/A self assertEqual N/A N/A r cookies N/A foo bar N/A test_python_version_encoding_differences N/A N/A self N/A N/A get_mock N/A N/A url request N/A N/A N/A N/A content headers status_code elapsed N/A self content N/A content-type application/json 200 5 N/A all_requests N/A N/A HTTMock get_mock N/A N/A response N/A N/A requests get http://foo_bar N/A N/A N/A self assertEqual N/A self content N/A N/A response json N/A test_mock_redirect N/A N/A self N/A N/A get_mock N/A N/A url request N/A N/A N/A N/A status_code headers 302 N/A Location http://google.com/ N/A N/A urlmatch netloc example.com N/A N/A HTTMock get_mock google_mock N/A N/A response N/A N/A requests get http://example.com/ N/A N/A N/A self assertEqual N/A len N/A response history 1 N/A N/A N/A self assertEqual N/A response content Hello from Google N/A N/A StreamTest N/A N/A unittest TestCase N/A test_stream_request N/A N/A self N/A N/A N/A r N/A N/A requests get http://domain.com/ stream True N/A N/A N/A self assertEqual N/A N/A N/A r raw read Hello from domain.com N/A N/A with_httmock any_mock test_stream_request_with_dict_mock N/A N/A self N/A N/A N/A r N/A N/A requests get http://domain.com/ stream True N/A N/A N/A self assertEqual N/A N/A N/A r raw read Hello from domain.com N/A N/A with_httmock dict_any_mock test_non_stream_request N/A N/A self N/A N/A N/A r N/A N/A requests get http://domain.com/ N/A N/A N/A self assertEqual N/A N/A N/A r raw read N/A N/A with_httmock any_mock N/A