Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return Str orelse If CompareEq NameLoad Str body Assign NameStore BinOpMod Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse If CompareEq NameLoad Str body Assign NameStore BinOpMod Str NameLoad Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse If CompareEq NameLoad Str body Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Raise Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse If CompareEq NameLoad Str body Return BinOpMod Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return Str Return Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Functional test cases testing glance client redirect-following. N/A eventlet.patcher N/A webob.dec N/A webob.exc glance.common client glance.common exception glance.common wsgi glance.tests functional glance.tests utils N/A N/A N/A N/A eventlet patcher monkey_patch socket True RedirectTestApp N/A object N/A N/A 
    Test WSGI application which can respond with multiple kinds of HTTP
    redirects and is used to verify Glance client redirects.
     __init__ N/A N/A self name N/A N/A N/A 
        Initialize app with a name and port.
         N/A N/A self name name N/A __call__ N/A N/A self request N/A N/A N/A 
        Handles all requests to the application.
         N/A base N/A http://%s N/A request host N/A path N/A request path_qs N/A N/A path / N/A N/A root N/A N/A N/A path /302 N/A N/A url N/A %s/success base N/A N/A N/A N/A webob exc HTTPFound location url N/A N/A N/A path /302?with_qs=yes N/A N/A url N/A %s/success?with_qs=yes base N/A N/A N/A N/A webob exc HTTPFound location url N/A N/A N/A path /infinite_302 N/A N/A N/A N/A N/A webob exc HTTPFound location N/A request url N/A N/A N/A N/A path startswith /redirect-to N/A N/A url N/A http://127.0.0.1:%s/success N/A N/A N/A path split - N/A -1 N/A N/A N/A N/A webob exc HTTPFound location url N/A N/A N/A path /success N/A N/A N/A success_from_host_%s N/A self name N/A N/A N/A path /success?with_qs=yes N/A N/A success_with_qs N/A fail N/A N/A N/A webob dec wsgify N/A TestClientRedirects N/A N/A functional FunctionalTest N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestClientRedirects self setUp N/A N/A self port_one N/A N/A utils get_unused_port N/A N/A self port_two N/A N/A utils get_unused_port N/A server_one N/A N/A wsgi Server N/A server_two N/A N/A wsgi Server N/A conf N/A N/A utils TestConfigOpts N/A bind_host 127.0.0.1 N/A N/A N/A server_one start N/A RedirectTestApp one conf N/A self port_one N/A N/A N/A server_two start N/A RedirectTestApp two conf N/A self port_two N/A N/A self client N/A N/A client BaseClient 127.0.0.1 N/A self port_one N/A test_get_without_redirect N/A N/A self N/A N/A N/A 
        Test GET with no redirect
         N/A response N/A N/A N/A self client do_request GET / N/A N/A N/A self assertEquals 200 N/A response status N/A N/A N/A self assertEquals root N/A N/A response read N/A test_get_with_one_redirect N/A N/A self N/A N/A N/A 
        Test GET with one 302 FOUND redirect
         N/A response N/A N/A N/A self client do_request GET /302 N/A N/A N/A self assertEquals 200 N/A response status N/A N/A N/A self assertEquals success_from_host_one N/A N/A response read N/A test_get_with_one_redirect_query_string N/A N/A self N/A N/A N/A 
        Test GET with one 302 FOUND redirect w/ a query string
         N/A response N/A N/A N/A self client do_request GET /302?with_qs=yes N/A N/A N/A self assertEquals 200 N/A response status N/A N/A N/A self assertEquals success_with_qs N/A N/A response read N/A test_get_with_max_redirects N/A N/A self N/A N/A N/A 
        Test we don't redirect forever.
         N/A N/A N/A self assertRaises N/A exception MaxRedirectsExceeded N/A N/A self client do_request GET /infinite_302 N/A test_post_redirect N/A N/A self N/A N/A N/A 
        Test POST with 302 redirect
         N/A response N/A N/A N/A self client do_request POST /302 N/A N/A N/A self assertEquals 200 N/A response status N/A N/A N/A self assertEquals success_from_host_one N/A N/A response read N/A test_redirect_to_new_host N/A N/A self N/A N/A N/A 
        Test redirect to one host and then another.
         N/A url N/A /redirect-to-%d N/A self port_two N/A response N/A N/A N/A self client do_request POST url N/A N/A N/A self assertEquals 200 N/A response status N/A N/A N/A self assertEquals success_from_host_two N/A N/A response read N/A response N/A N/A N/A self client do_request POST /success N/A N/A N/A self assertEquals 200 N/A response status N/A N/A N/A self assertEquals success_from_host_one N/A N/A response read N/A N/A