Module Assign NameStore Str Import alias Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Num keyword Str keyword Dict Str Str Str Str keyword Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num attr Assign SubscriptStore AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num attr Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Index Num attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A __author__ j.s@google.com (Jeff Scudder) N/A unittest N/A StringIO N/A os.path N/A atom.mock_http_core N/A atom.http_core EchoClientTest N/A N/A unittest TestCase N/A test_echo_response N/A N/A self N/A N/A N/A client N/A N/A N/A atom mock_http_core EchoHttpClient N/A request N/A N/A N/A atom http_core HttpRequest method POST uri N/A N/A N/A atom http_core Uri host www.jeffscudder.com path / N/A N/A N/A request add_body_part hello world! text/plain N/A response N/A N/A client request request N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Host www.jeffscudder.com:None N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Uri / N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Scheme None N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Method POST N/A N/A N/A self assert_ N/A N/A N/A response getheader Content-Length N/A str N/A len hello world! N/A N/A N/A self assert_ N/A N/A N/A response getheader Content-Type text/plain N/A N/A N/A self assert_ N/A N/A N/A response read hello world! N/A request N/A N/A N/A atom http_core HttpRequest method POST uri N/A N/A N/A atom http_core Uri host www.jeffscudder.com path None N/A response N/A N/A client request request N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Host www.jeffscudder.com:None N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Method POST N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Uri / N/A request N/A N/A N/A atom http_core HttpRequest method POST uri N/A N/A N/A atom http_core Uri scheme https host www.jeffscudder.com port 8080 path /multipart query N/A test happy true yes headers N/A Authorization Testing Test xyzzy True N/A N/A N/A request add_body_part start text/plain N/A N/A N/A request add_body_part N/A N/A StringIO StringIO <html><body>hi</body></html> text/html N/A len <html><body>hi</body></html> N/A N/A N/A request add_body_part alert("Greetings!") text/javascript N/A response N/A N/A client request request N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Host www.jeffscudder.com:8080 N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Uri /multipart?test=true&happy=yes N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Scheme https N/A N/A N/A self assert_ N/A N/A N/A response getheader Echo-Method POST N/A N/A N/A self assert_ N/A N/A N/A response getheader Content-Type N/A multipart/related; boundary="%s" N/A N/A N/A atom http_core MIME_BOUNDARY N/A expected_body N/A Media multipart posting
--%s
Content-Type: text/plain

start
--%s
Content-Type: text/html

<html><body>hi</body></html>
--%s
Content-Type: text/javascript

alert("Greetings!")
--%s-- N/A N/A N/A atom http_core MIME_BOUNDARY N/A N/A atom http_core MIME_BOUNDARY N/A N/A atom http_core MIME_BOUNDARY N/A N/A atom http_core MIME_BOUNDARY N/A N/A N/A self assert_ N/A N/A N/A response read expected_body N/A N/A N/A self assert_ N/A N/A N/A response getheader Content-Length N/A str N/A len expected_body N/A N/A MockHttpClientTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self client N/A N/A N/A atom mock_http_core MockHttpClient N/A test_respond_with_recording N/A N/A self N/A N/A N/A request N/A N/A N/A atom http_core HttpRequest method GET N/A N/A N/A N/A N/A N/A atom http_core parse_uri http://www.google.com/ modify_request request N/A N/A N/A N/A self client add_response request 200 OK body Testing N/A response N/A N/A N/A self client request request N/A N/A N/A self assert_ N/A N/A response status 200 N/A N/A N/A self assert_ N/A N/A response reason OK N/A N/A N/A self assert_ N/A N/A N/A response read Testing N/A test_save_and_load_recordings N/A N/A self N/A N/A N/A request N/A N/A N/A atom http_core HttpRequest method GET N/A N/A N/A N/A N/A N/A atom http_core parse_uri http://www.google.com/ modify_request request N/A N/A N/A N/A self client add_response request 200 OK body Testing N/A response N/A N/A N/A self client request request N/A N/A N/A N/A self client _save_recordings test_save_and_load_recordings N/A N/A N/A self client _recordings N/A N/A response N/A N/A N/A self client request request N/A N/A N/A self assert_ N/A response None N/A N/A N/A N/A self client _load_recordings test_save_and_load_recordings N/A response N/A N/A N/A self client request request N/A N/A N/A self assert_ N/A N/A response status 200 N/A N/A N/A self assert_ N/A N/A response reason OK N/A N/A N/A self assert_ N/A N/A N/A response read Testing N/A test_use_recordings N/A N/A self N/A N/A N/A request N/A N/A N/A atom http_core HttpRequest method GET N/A N/A N/A N/A N/A N/A atom http_core parse_uri http://www.google.com/ modify_request request N/A N/A N/A N/A self client _load_or_use_client test_use_recordings N/A N/A N/A atom http_core HttpClient N/A response N/A N/A N/A self client request request N/A N/A N/A self client real_client N/A N/A N/A N/A N/A self client _save_recordings test_use_recordings N/A N/A N/A self assert_ N/A N/A response status 200 N/A N/A N/A self assert_ N/A N/A response reason OK N/A N/A N/A self assert_ N/A N/A N/A response getheader server gws N/A body N/A N/A response read N/A N/A N/A self assert_ N/A N/A body startswith <!doctype html> N/A test_match_request N/A N/A self N/A N/A N/A x N/A N/A N/A atom http_core HttpRequest http://example.com/ GET N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/ GET N/A N/A N/A self assertTrue N/A N/A N/A atom mock_http_core _match_request x y N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/ POST N/A N/A N/A self assertFalse N/A N/A N/A atom mock_http_core _match_request x y N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/1 GET N/A N/A N/A self assertFalse N/A N/A N/A atom mock_http_core _match_request x y N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/?gsessionid=1 GET N/A N/A N/A self assertFalse N/A N/A N/A atom mock_http_core _match_request x y N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/?start_index=1 GET N/A N/A N/A self assertTrue N/A N/A N/A atom mock_http_core _match_request x y N/A x N/A N/A N/A atom http_core HttpRequest http://example.com/?gsessionid=1 GET N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/?gsessionid=1 GET N/A N/A N/A self assertTrue N/A N/A N/A atom mock_http_core _match_request x y N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/?gsessionid=2 GET N/A N/A N/A self assertFalse N/A N/A N/A atom mock_http_core _match_request x y N/A y N/A N/A N/A atom http_core HttpRequest http://example.com/ GET N/A N/A N/A self assertFalse N/A N/A N/A atom mock_http_core _match_request x y N/A test_use_named_sessions N/A N/A self N/A N/A N/A N/A N/A N/A self client _delete_recordings mock_http_test.test_use_named_sessions N/A N/A N/A N/A self client use_cached_session mock_http_test.test_use_named_sessions N/A N/A N/A atom mock_http_core EchoHttpClient N/A request N/A N/A N/A atom http_core HttpRequest http://example.com GET N/A response N/A N/A N/A self client request request N/A N/A N/A self assertEqual N/A N/A response getheader Echo-Method GET N/A N/A N/A self assertEqual N/A N/A response getheader Echo-Host example.com:None N/A N/A N/A self assertEqual N/A N/A response getheader Cache-Marker None N/A N/A N/A self assertFalse N/A Cache-Marker N/A N/A N/A N/A N/A self client _recordings N/A 0 N/A 1 _headers N/A N/A N/A N/A N/A N/A N/A self client _recordings N/A 0 N/A 1 _headers N/A Cache-Marker 1 N/A N/A N/A self assertTrue N/A Cache-Marker N/A N/A N/A N/A N/A self client _recordings N/A 0 N/A 1 _headers N/A N/A N/A N/A self client close_session N/A client N/A N/A N/A atom mock_http_core MockHttpClient N/A N/A N/A client use_cached_session mock_http_test.test_use_named_sessions N/A N/A N/A atom mock_http_core EchoHttpClient N/A response N/A N/A client request request N/A N/A N/A self assertEqual N/A N/A response getheader Echo-Method GET N/A N/A N/A self assertEqual N/A N/A response getheader Echo-Host example.com:None N/A N/A N/A self assertEqual N/A N/A response getheader Cache-Marker 1 N/A N/A suite N/A N/A N/A N/A N/A N/A N/A unittest TestSuite N/A N/A N/A unittest makeSuite MockHttpClientTest test N/A N/A unittest makeSuite EchoClientTest test N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main