Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias If AttributeLoad NameLoad attr body Import alias Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Return TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad TupleLoad Str Num NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr While UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Num orelse Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Return CompareEq NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return NameLoad If CompareNotIn Str AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str orelse Return Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign NameStore NameLoad For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr FunctionDef arguments args defaults vararg kwarg body Return Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr While Call AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body While Call AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod NameLoad AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Return NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Pass decorator_list decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad TupleLoad Num ListLoad TupleLoad Str Str Str TupleLoad Num ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Pass orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr keyword Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMod Str NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str BinOpAdd BinOpMult Str Num Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num ListLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A urlparse N/A urllib2 N/A BaseHTTPServer N/A unittest N/A hashlib test test_support N/A N/A test_support is_jython N/A N/A socket N/A N/A N/A socket _use_ipv4_addresses_only True N/A mimetools N/A N/A test_support import_module mimetools deprecated True N/A threading N/A N/A test_support import_module threading LoopbackHttpServer N/A N/A BaseHTTPServer HTTPServer N/A N/A HTTP server w/ a few modifications that make it useful for
    loopback testing purposes.
     __init__ N/A N/A self server_address RequestHandlerClass N/A N/A N/A N/A N/A N/A BaseHTTPServer HTTPServer __init__ self server_address RequestHandlerClass True N/A N/A host port N/A N/A N/A N/A self socket getsockname N/A 2 N/A N/A self server_name N/A N/A socket getfqdn host N/A N/A self server_port port N/A N/A N/A N/A self socket settimeout 1.0 N/A get_request N/A N/A self N/A N/A N/A BaseHTTPServer method, overridden. N/A N/A request client_address N/A N/A N/A self socket accept N/A N/A N/A request settimeout 10.0 N/A N/A request client_address N/A N/A LoopbackHttpServerThread N/A N/A threading Thread N/A N/A Stoppable thread that runs a loopback http server. __init__ N/A N/A self request_handler N/A N/A N/A N/A N/A N/A threading Thread __init__ self N/A N/A self _stop False N/A N/A self ready N/A N/A threading Event N/A N/A request_handler protocol_version HTTP/1.0 N/A N/A self httpd N/A LoopbackHttpServer N/A 127.0.0.1 0 request_handler N/A N/A self port N/A N/A self httpd server_port N/A stop N/A N/A self N/A N/A N/A Stops the webserver if it's currently running. N/A N/A self _stop True N/A N/A N/A self join N/A run N/A N/A self N/A N/A N/A N/A N/A N/A self ready set N/A N/A N/A self _stop N/A N/A N/A N/A N/A self httpd handle_request N/A N/A DigestAuthHandler N/A N/A N/A Handler for performing digest authentication. __init__ N/A N/A self N/A N/A N/A N/A self _request_num 0 N/A N/A self _nonces N/A N/A N/A self _users N/A N/A N/A self _realm_name Test Realm N/A N/A self _qop auth N/A set_qop N/A N/A self qop N/A N/A N/A N/A self _qop qop N/A set_users N/A N/A self users N/A N/A N/A N/A isinstance users dict N/A N/A self _users users N/A set_realm N/A N/A self realm N/A N/A N/A N/A self _realm_name realm N/A _generate_nonce N/A N/A self N/A N/A N/A N/A self _request_num 1 N/A nonce N/A N/A N/A N/A hashlib md5 N/A str N/A self _request_num hexdigest N/A N/A N/A N/A self _nonces append nonce N/A nonce N/A _create_auth_dict N/A N/A self auth_str N/A N/A N/A first_space_index N/A N/A auth_str find N/A auth_str N/A auth_str N/A N/A first_space_index 1 N/A parts N/A N/A auth_str split , N/A auth_dict N/A N/A part parts N/A N/A N/A name value N/A N/A part split = N/A name N/A N/A name strip N/A N/A N/A N/A value N/A 0 " N/A N/A value N/A -1 " N/A N/A value N/A value N/A 1 -1 N/A N/A value N/A N/A value strip N/A N/A auth_dict N/A name value N/A auth_dict N/A _validate_auth N/A N/A self auth_dict password method uri N/A N/A N/A final_dict N/A N/A N/A N/A final_dict update auth_dict N/A N/A final_dict N/A password password N/A N/A final_dict N/A method method N/A N/A final_dict N/A uri uri N/A HA1_str N/A %(username)s:%(realm)s:%(password)s final_dict N/A HA1 N/A N/A N/A N/A hashlib md5 HA1_str hexdigest N/A HA2_str N/A %(method)s:%(uri)s final_dict N/A HA2 N/A N/A N/A N/A hashlib md5 HA2_str hexdigest N/A N/A final_dict N/A HA1 HA1 N/A N/A final_dict N/A HA2 HA2 N/A response_str N/A %(HA1)s:%(nonce)s:%(nc)s:%(cnonce)s:%(qop)s:%(HA2)s final_dict N/A response N/A N/A N/A N/A hashlib md5 response_str hexdigest N/A N/A response N/A auth_dict N/A response N/A _return_auth_challenge N/A N/A self request_handler N/A N/A N/A N/A N/A request_handler send_response 407 Proxy Authentication Required N/A N/A N/A request_handler send_header Content-Type text/html N/A N/A N/A request_handler send_header Proxy-Authenticate N/A Digest realm="%s", qop="%s",nonce="%s",  N/A N/A self _realm_name N/A self _qop N/A N/A self _generate_nonce N/A N/A N/A request_handler end_headers N/A N/A N/A N/A request_handler wfile write Proxy Authentication Required. N/A False N/A handle_request N/A N/A self request_handler N/A N/A N/A Performs digest authentication on the given HTTP request
        handler.  Returns True if authentication was successful, False
        otherwise.

        If no users have been set, then digest auth is effectively
        disabled and this method will always return True.
         N/A N/A N/A len N/A self _users 0 N/A N/A True N/A N/A Proxy-Authorization N/A request_handler headers N/A N/A N/A N/A self _return_auth_challenge request_handler N/A N/A auth_dict N/A N/A self _create_auth_dict N/A N/A request_handler headers N/A Proxy-Authorization N/A N/A N/A auth_dict N/A username N/A self _users N/A N/A password N/A N/A self _users N/A N/A auth_dict N/A username N/A N/A N/A N/A self _return_auth_challenge request_handler N/A N/A N/A N/A N/A auth_dict get nonce N/A self _nonces N/A N/A N/A N/A self _return_auth_challenge request_handler N/A N/A N/A N/A N/A self _nonces remove N/A auth_dict N/A nonce N/A auth_validated False N/A path N/A N/A request_handler path N/A request_handler short_path N/A N/A N/A N/A self _validate_auth auth_dict password N/A request_handler command path N/A N/A auth_validated True N/A N/A auth_validated N/A N/A N/A N/A self _return_auth_challenge request_handler N/A True N/A N/A FakeProxyHandler N/A N/A BaseHTTPServer BaseHTTPRequestHandler N/A N/A This is a 'fake proxy' that makes it look like the entire
    internet has gone down due to a sudden zombie invasion.  It main
    utility is in providing us with authentication support for
    testing.
     __init__ N/A N/A self digest_auth_handler N/A args kwargs N/A N/A N/A self digest_auth_handler digest_auth_handler N/A N/A N/A N/A BaseHTTPServer BaseHTTPRequestHandler __init__ self args kwargs N/A log_message N/A N/A self format N/A args N/A N/A N/A do_GET N/A N/A self N/A N/A N/A N/A scm netloc path params query fragment N/A N/A urlparse urlparse N/A self path http N/A N/A self short_path path N/A N/A N/A N/A self digest_auth_handler handle_request self N/A N/A N/A N/A self send_response 200 OK N/A N/A N/A self send_header Content-Type text/html N/A N/A N/A self end_headers N/A N/A N/A N/A self wfile write N/A You've reached %s!<BR> N/A self path N/A N/A N/A N/A self wfile write Our apologies, but our server is down due to a sudden zombie invasion. N/A N/A BaseTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _threads N/A N/A test_support threading_setup N/A tearDown N/A N/A self N/A N/A N/A N/A N/A test_support threading_cleanup N/A self _threads N/A N/A ProxyAuthTests N/A BaseTestCase N/A N/A URL http://localhost N/A USER tester N/A PASSWD test123 N/A REALM TestRealm setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ProxyAuthTests self setUp N/A N/A self digest_auth_handler N/A DigestAuthHandler N/A N/A N/A N/A self digest_auth_handler set_users N/A N/A self USER N/A self PASSWD N/A N/A N/A N/A self digest_auth_handler set_realm N/A self REALM create_fake_proxy_handler N/A N/A N/A args kwargs N/A N/A N/A FakeProxyHandler N/A self digest_auth_handler args kwargs N/A N/A N/A self server N/A LoopbackHttpServerThread create_fake_proxy_handler N/A N/A N/A N/A self server start N/A N/A N/A N/A N/A self server ready wait N/A proxy_url N/A http://127.0.0.1:%d N/A N/A self server port N/A handler N/A N/A urllib2 ProxyHandler N/A http proxy_url N/A N/A self proxy_digest_handler N/A N/A urllib2 ProxyDigestAuthHandler N/A N/A self opener N/A N/A urllib2 build_opener handler N/A self proxy_digest_handler N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self server stop N/A N/A N/A N/A super ProxyAuthTests self tearDown N/A test_proxy_with_bad_password_raises_httperror N/A N/A self N/A N/A N/A N/A N/A N/A self proxy_digest_handler add_password N/A self REALM N/A self URL N/A self USER N/A N/A self PASSWD bad N/A N/A N/A N/A self digest_auth_handler set_qop auth N/A N/A N/A self assertRaises N/A urllib2 HTTPError N/A N/A self opener open N/A self URL N/A test_proxy_with_no_password_raises_httperror N/A N/A self N/A N/A N/A N/A N/A N/A self digest_auth_handler set_qop auth N/A N/A N/A self assertRaises N/A urllib2 HTTPError N/A N/A self opener open N/A self URL N/A test_proxy_qop_auth_works N/A N/A self N/A N/A N/A N/A N/A N/A self proxy_digest_handler add_password N/A self REALM N/A self URL N/A self USER N/A self PASSWD N/A N/A N/A N/A self digest_auth_handler set_qop auth N/A result N/A N/A N/A self opener open N/A self URL N/A N/A N/A result read N/A N/A N/A N/A N/A result close N/A test_proxy_qop_auth_int_works_or_throws_urlerror N/A N/A self N/A N/A N/A N/A N/A N/A self proxy_digest_handler add_password N/A self REALM N/A self URL N/A self USER N/A self PASSWD N/A N/A N/A N/A self digest_auth_handler set_qop auth-int N/A N/A N/A result N/A N/A N/A self opener open N/A self URL N/A N/A N/A N/A urllib2 URLError N/A N/A result None N/A result N/A N/A N/A N/A result read N/A N/A N/A N/A N/A result close N/A N/A GetRequestHandler N/A N/A responses N/A N/A FakeHTTPRequestHandler N/A N/A BaseHTTPServer BaseHTTPRequestHandler N/A N/A server_version TestHTTP/ N/A requests N/A N/A headers_received N/A N/A port 80 do_GET N/A N/A self N/A N/A N/A body N/A N/A self send_head N/A body N/A N/A N/A N/A N/A self wfile write body N/A do_POST N/A N/A self N/A N/A N/A content_length N/A N/A self headers N/A Content-Length N/A post_data N/A N/A N/A self rfile read N/A int content_length N/A N/A N/A self do_GET N/A N/A N/A N/A self requests append post_data N/A send_head N/A N/A self N/A N/A N/A N/A FakeHTTPRequestHandler headers_received N/A self headers N/A N/A N/A N/A self requests append N/A self path N/A N/A response_code headers body N/A N/A responses pop 0 N/A N/A N/A self send_response response_code N/A N/A header value headers N/A N/A N/A N/A self send_header header N/A value N/A self port N/A body N/A N/A N/A N/A self send_header Content-type text/plain N/A N/A N/A self end_headers N/A body N/A N/A N/A self end_headers N/A log_message N/A N/A self N/A args N/A N/A N/A N/A N/A FakeHTTPRequestHandler N/A TestUrlopen N/A BaseTestCase N/A N/A Tests urllib2.urlopen using the network.

    These tests are not exhaustive.  Assuming that testing using files does a
    good job overall of some of the basic interface features.  There are no
    tests exercising the optional 'data' and 'proxies' arguments.  No tests
    for transparent redirection have been written.
     setUp N/A N/A self N/A N/A N/A proxy_handler N/A N/A urllib2 ProxyHandler N/A N/A opener N/A N/A urllib2 build_opener proxy_handler N/A N/A N/A urllib2 install_opener opener N/A N/A N/A N/A super TestUrlopen self setUp N/A start_server N/A N/A self responses N/A N/A N/A handler N/A GetRequestHandler responses N/A N/A self server N/A LoopbackHttpServerThread handler N/A N/A N/A N/A self server start N/A N/A N/A N/A N/A self server ready wait N/A port N/A N/A self server port N/A N/A handler port port N/A handler N/A test_redirection N/A N/A self N/A N/A N/A expected_response We got here... N/A responses N/A N/A 302 N/A N/A Location http://localhost:%s/somewhere_else N/A 200 N/A expected_response N/A handler N/A N/A self start_server responses N/A N/A N/A f N/A N/A urllib2 urlopen N/A http://localhost:%s/ N/A handler port N/A data N/A N/A f read N/A N/A N/A f close N/A N/A N/A self assertEqual data expected_response N/A N/A N/A self assertEqual N/A handler requests N/A / /somewhere_else N/A N/A N/A N/A N/A self server stop N/A test_404 N/A N/A self N/A N/A N/A expected_response Bad bad bad... N/A handler N/A N/A self start_server N/A N/A 404 N/A expected_response N/A N/A N/A N/A N/A N/A N/A urllib2 urlopen N/A http://localhost:%s/weeble N/A handler port N/A N/A N/A N/A urllib2 URLError N/A f N/A N/A N/A N/A N/A N/A self fail 404 should raise URLError N/A data N/A N/A f read N/A N/A N/A f close N/A N/A N/A self assertEqual data expected_response N/A N/A N/A self assertEqual N/A handler requests N/A /weeble N/A N/A N/A N/A N/A self server stop N/A test_200 N/A N/A self N/A N/A N/A expected_response pycon 2008... N/A handler N/A N/A self start_server N/A N/A 200 N/A expected_response N/A N/A N/A f N/A N/A urllib2 urlopen N/A http://localhost:%s/bizarre N/A handler port N/A data N/A N/A f read N/A N/A N/A f close N/A N/A N/A self assertEqual data expected_response N/A N/A N/A self assertEqual N/A handler requests N/A /bizarre N/A N/A N/A N/A N/A self server stop N/A test_200_with_parameters N/A N/A self N/A N/A N/A expected_response pycon 2008... N/A handler N/A N/A self start_server N/A N/A 200 N/A expected_response N/A N/A N/A f N/A N/A urllib2 urlopen N/A http://localhost:%s/bizarre N/A handler port get=with_feeling N/A data N/A N/A f read N/A N/A N/A f close N/A N/A N/A self assertEqual data expected_response N/A N/A N/A self assertEqual N/A handler requests N/A /bizarre get=with_feeling N/A N/A N/A N/A N/A self server stop N/A test_sending_headers N/A N/A self N/A N/A N/A handler N/A N/A self start_server N/A N/A 200 N/A we don't care N/A N/A N/A req N/A N/A urllib2 Request N/A http://localhost:%s/ N/A handler port headers N/A Range bytes=20-39 N/A N/A N/A urllib2 urlopen req N/A N/A N/A self assertEqual N/A N/A handler headers_received N/A Range bytes=20-39 N/A N/A N/A N/A N/A self server stop N/A test_basic N/A N/A self N/A N/A N/A handler N/A N/A self start_server N/A N/A 200 N/A we don't care N/A N/A N/A open_url N/A N/A urllib2 urlopen N/A http://localhost:%s N/A handler port N/A attr N/A read close info geturl N/A N/A N/A N/A self assertTrue N/A hasattr open_url attr N/A object returned from urlopen lacks the %s attribute attr N/A N/A N/A N/A N/A self assertTrue N/A N/A open_url read calling 'read' failed N/A N/A N/A N/A open_url close N/A N/A N/A N/A N/A self server stop N/A test_info N/A N/A self N/A N/A N/A handler N/A N/A self start_server N/A N/A 200 N/A we don't care N/A N/A N/A open_url N/A N/A urllib2 urlopen N/A http://localhost:%s N/A handler port N/A info_obj N/A N/A open_url info N/A N/A N/A self assertIsInstance info_obj N/A mimetools Message object returned by 'info' is not an instance of mimetools.Message N/A N/A N/A self assertEqual N/A N/A info_obj getsubtype plain N/A N/A N/A N/A N/A self server stop N/A test_geturl N/A N/A self N/A N/A N/A handler N/A N/A self start_server N/A N/A 200 N/A we don't care N/A N/A N/A open_url N/A N/A urllib2 urlopen N/A http://localhost:%s N/A handler port N/A url N/A N/A open_url geturl N/A N/A N/A self assertEqual url N/A http://localhost:%s N/A handler port N/A N/A N/A N/A N/A self server stop N/A test_bad_address N/A N/A self N/A N/A N/A N/A N/A self assertRaises IOError N/A urllib2 urlopen http://sadflkjsasf.i.nvali.d./ N/A test_iteration N/A N/A self N/A N/A N/A expected_response pycon 2008... N/A handler N/A N/A self start_server N/A N/A 200 N/A expected_response N/A N/A N/A data N/A N/A urllib2 urlopen N/A http://localhost:%s N/A handler port N/A line data N/A N/A N/A N/A self assertEqual line expected_response N/A N/A N/A N/A N/A self server stop N/A ztest_line_iteration N/A N/A self N/A N/A N/A lines N/A We
 got
 here
 N/A N/A verylong  8192 N/A expected_response N/A N/A join lines N/A handler N/A N/A self start_server N/A N/A 200 N/A expected_response N/A N/A N/A data N/A N/A urllib2 urlopen N/A http://localhost:%s N/A handler port N/A N/A index line N/A enumerate data N/A N/A N/A N/A self assertEqual line N/A lines N/A index N/A Fetched line number %s doesn't match expected:
    Expected length was %s, got %s N/A index N/A len N/A lines N/A index N/A len line N/A N/A N/A N/A N/A self server stop N/A N/A N/A self assertEqual N/A index 1 N/A len lines N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A test_support run_unittest ProxyAuthTests TestUrlopen N/A N/A N/A __name__ __main__ N/A N/A N/A test_main