Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Num Assign AttributeStore NameLoad attr AttributeStore NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad Call NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr CompareIn Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad Call NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr CompareIn Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareIs NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Delete AttributeDel NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad Str NameLoad body Return Str If Call NameLoad NameLoad Str NameLoad body Return Str Return Str decorator_list decorator_list Assign AttributeStore NameLoad attr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore BinOpMult Str Num Assign NameStore Call AttributeLoad Str attr GeneratorExp Call NameLoad Call AttributeLoad NameLoad attr Num Num comprehension NameStore Call NameLoad Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Str Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeStore AttributeLoad NameLoad attr attr Str Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad NameLoad attr NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore BinOpMult Str Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Call AttributeLoad Call NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Call AttributeLoad Call NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call Call NameLoad keyword NameLoad NameLoad
N/A N/A gzip N/A re N/A random N/A StringIO django.conf settings django.core mail django.http HttpRequest django.http HttpResponse django.middleware.clickjacking XFrameOptionsMiddleware django.middleware.common CommonMiddleware django.middleware.http ConditionalGetMiddleware django.middleware.gzip GZipMiddleware django.test TestCase RequestFactory django.test.utils override_settings CommonMiddlewareTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self append_slash N/A settings APPEND_SLASH N/A N/A self prepend_www N/A settings PREPEND_WWW N/A N/A self ignorable_404_urls N/A settings IGNORABLE_404_URLS N/A N/A self send_broken_email_links N/A settings SEND_BROKEN_LINK_EMAILS N/A tearDown N/A N/A self N/A N/A N/A N/A settings APPEND_SLASH N/A self append_slash N/A N/A settings PREPEND_WWW N/A self prepend_www N/A N/A settings IGNORABLE_404_URLS N/A self ignorable_404_urls N/A N/A settings SEND_BROKEN_LINK_EMAILS N/A self send_broken_email_links N/A _get_request N/A N/A self path N/A N/A N/A request N/A HttpRequest N/A N/A request META N/A SERVER_NAME SERVER_PORT testserver 80 N/A N/A request path N/A request path_info N/A /middleware/%s path N/A request N/A test_append_slash_have_slash N/A N/A self N/A N/A N/A 
        Tests that URLs with slashes go unmolested.
         N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request slash/ N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_slashless_resource N/A N/A self N/A N/A N/A 
        Tests that matches to explicit slashless URLs go unmolested.
         N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request noslash N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_slashless_unknown N/A N/A self N/A N/A N/A 
        Tests that APPEND_SLASH doesn't redirect to unknown resources.
         N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request unknown N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_redirect N/A N/A self N/A N/A N/A 
        Tests that APPEND_SLASH redirects slashless URLs to a valid pattern.
         N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request slash N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://testserver/middleware/slash/ N/A test_append_slash_no_redirect_on_POST_in_DEBUG N/A N/A self N/A N/A N/A 
        Tests that while in debug mode, an exception is raised with a warning
        when a failed attempt is made to POST to an URL which would normally be
        redirected to a slashed version.
         N/A N/A settings APPEND_SLASH True N/A N/A settings DEBUG True N/A request N/A N/A self _get_request slash N/A N/A request method POST N/A N/A N/A self assertRaises RuntimeError N/A N/A CommonMiddleware process_request request N/A N/A N/A N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A RuntimeError N/A e N/A N/A N/A N/A self assertTrue N/A end in a slash N/A str e N/A N/A settings DEBUG False N/A test_append_slash_disabled N/A N/A self N/A N/A N/A 
        Tests disabling append slash functionality.
         N/A N/A settings APPEND_SLASH False N/A request N/A N/A self _get_request slash N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_quoted N/A N/A self N/A N/A N/A 
        Tests that URLs which require quoting are redirected to their slash
        version ok.
         N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request needsquoting# N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://testserver/middleware/needsquoting%23/ N/A test_prepend_www N/A N/A self N/A N/A N/A N/A settings PREPEND_WWW True N/A N/A settings APPEND_SLASH False N/A request N/A N/A self _get_request path/ N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://www.testserver/middleware/path/ N/A test_prepend_www_append_slash_have_slash N/A N/A self N/A N/A N/A N/A settings PREPEND_WWW True N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request slash/ N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://www.testserver/middleware/slash/ N/A test_prepend_www_append_slash_slashless N/A N/A self N/A N/A N/A N/A settings PREPEND_WWW True N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request slash N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://www.testserver/middleware/slash/ N/A test_append_slash_have_slash_custom_urlconf N/A N/A self N/A N/A N/A 
      Tests that URLs with slashes go unmolested.
       N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request customurlconf/slash/ N/A N/A request urlconf regressiontests.middleware.extra_urls N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_slashless_resource_custom_urlconf N/A N/A self N/A N/A N/A 
      Tests that matches to explicit slashless URLs go unmolested.
       N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request customurlconf/noslash N/A N/A request urlconf regressiontests.middleware.extra_urls N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_slashless_unknown_custom_urlconf N/A N/A self N/A N/A N/A 
      Tests that APPEND_SLASH doesn't redirect to unknown resources.
       N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request customurlconf/unknown N/A N/A request urlconf regressiontests.middleware.extra_urls N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_redirect_custom_urlconf N/A N/A self N/A N/A N/A 
      Tests that APPEND_SLASH redirects slashless URLs to a valid pattern.
       N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request customurlconf/slash N/A N/A request urlconf regressiontests.middleware.extra_urls N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertFalse N/A r None CommonMiddlware failed to return APPEND_SLASH redirect using request.urlconf N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://testserver/middleware/customurlconf/slash/ N/A test_append_slash_no_redirect_on_POST_in_DEBUG_custom_urlconf N/A N/A self N/A N/A N/A 
      Tests that while in debug mode, an exception is raised with a warning
      when a failed attempt is made to POST to an URL which would normally be
      redirected to a slashed version.
       N/A N/A settings APPEND_SLASH True N/A N/A settings DEBUG True N/A request N/A N/A self _get_request customurlconf/slash N/A N/A request urlconf regressiontests.middleware.extra_urls N/A N/A request method POST N/A N/A N/A self assertRaises RuntimeError N/A N/A CommonMiddleware process_request request N/A N/A N/A N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A RuntimeError N/A e N/A N/A N/A N/A self assertTrue N/A end in a slash N/A str e N/A N/A settings DEBUG False N/A test_append_slash_disabled_custom_urlconf N/A N/A self N/A N/A N/A 
      Tests disabling append slash functionality.
       N/A N/A settings APPEND_SLASH False N/A request N/A N/A self _get_request customurlconf/slash N/A N/A request urlconf regressiontests.middleware.extra_urls N/A N/A N/A self assertEqual N/A N/A N/A CommonMiddleware process_request request None N/A test_append_slash_quoted_custom_urlconf N/A N/A self N/A N/A N/A 
      Tests that URLs which require quoting are redirected to their slash
      version ok.
       N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request customurlconf/needsquoting# N/A N/A request urlconf regressiontests.middleware.extra_urls N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertFalse N/A r None CommonMiddlware failed to return APPEND_SLASH redirect using request.urlconf N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://testserver/middleware/customurlconf/needsquoting%23/ N/A test_prepend_www_custom_urlconf N/A N/A self N/A N/A N/A N/A settings PREPEND_WWW True N/A N/A settings APPEND_SLASH False N/A request N/A N/A self _get_request customurlconf/path/ N/A N/A request urlconf regressiontests.middleware.extra_urls N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://www.testserver/middleware/customurlconf/path/ N/A test_prepend_www_append_slash_have_slash_custom_urlconf N/A N/A self N/A N/A N/A N/A settings PREPEND_WWW True N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request customurlconf/slash/ N/A N/A request urlconf regressiontests.middleware.extra_urls N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://www.testserver/middleware/customurlconf/slash/ N/A test_prepend_www_append_slash_slashless_custom_urlconf N/A N/A self N/A N/A N/A N/A settings PREPEND_WWW True N/A N/A settings APPEND_SLASH True N/A request N/A N/A self _get_request customurlconf/slash N/A N/A request urlconf regressiontests.middleware.extra_urls N/A r N/A N/A N/A CommonMiddleware process_request request N/A N/A N/A self assertEqual N/A r status_code 301 N/A N/A N/A self assertEqual N/A r N/A Location http://www.testserver/middleware/customurlconf/slash/ N/A test_404_error_reporting N/A N/A self N/A N/A N/A N/A settings IGNORABLE_404_URLS N/A N/A N/A re compile foo N/A N/A settings SEND_BROKEN_LINK_EMAILS True N/A request N/A N/A self _get_request regular_url/that/does/not/exist N/A N/A N/A request META N/A HTTP_REFERER /another/url/ N/A response N/A N/A N/A self client get N/A request path N/A N/A N/A N/A CommonMiddleware process_response request response N/A N/A N/A self assertEqual N/A len N/A mail outbox 1 N/A N/A N/A self assertIn Broken N/A N/A N/A mail outbox N/A 0 subject N/A test_404_error_reporting_no_referer N/A N/A self N/A N/A N/A N/A settings IGNORABLE_404_URLS N/A N/A N/A re compile foo N/A N/A settings SEND_BROKEN_LINK_EMAILS True N/A request N/A N/A self _get_request regular_url/that/does/not/exist N/A response N/A N/A N/A self client get N/A request path N/A N/A N/A N/A CommonMiddleware process_response request response N/A N/A N/A self assertEqual N/A len N/A mail outbox 0 N/A test_404_error_reporting_ignored_url N/A N/A self N/A N/A N/A N/A settings IGNORABLE_404_URLS N/A N/A N/A re compile foo N/A N/A settings SEND_BROKEN_LINK_EMAILS True N/A request N/A N/A self _get_request foo_url/that/does/not/exist/either N/A N/A N/A request META N/A HTTP_REFERER /another/url/ N/A response N/A N/A N/A self client get N/A request path N/A N/A N/A N/A CommonMiddleware process_response request response N/A N/A N/A self assertEqual N/A len N/A mail outbox 0 N/A N/A ConditionalGetMiddlewareTest N/A TestCase N/A N/A urls regressiontests.middleware.cond_get_urls setUp N/A N/A self N/A N/A N/A N/A self req N/A HttpRequest N/A N/A N/A self req META N/A SERVER_NAME SERVER_PORT testserver 80 N/A N/A N/A self req path N/A N/A self req path_info / N/A N/A self resp N/A N/A N/A self client get N/A N/A self req path N/A test_date_header_added N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A Date N/A self resp N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertTrue N/A Date N/A self resp N/A test_content_length_header_added N/A N/A self N/A N/A N/A content_length N/A len N/A N/A self resp content N/A N/A N/A self assertFalse N/A Content-Length N/A self resp N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertTrue N/A Content-Length N/A self resp N/A N/A N/A self assertEqual N/A int N/A N/A self resp N/A Content-Length content_length N/A test_content_length_header_not_changed N/A N/A self N/A N/A N/A bad_content_length N/A N/A len N/A N/A self resp content 10 N/A N/A N/A self resp N/A Content-Length bad_content_length N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A int N/A N/A self resp N/A Content-Length bad_content_length N/A test_if_none_match_and_no_etag N/A N/A self N/A N/A N/A N/A N/A N/A self req META N/A HTTP_IF_NONE_MATCH spam N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 200 N/A test_no_if_none_match_and_etag N/A N/A self N/A N/A N/A N/A N/A self resp N/A ETag eggs N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 200 N/A test_if_none_match_and_same_etag N/A N/A self N/A N/A N/A N/A N/A N/A self req META N/A HTTP_IF_NONE_MATCH N/A N/A self resp N/A ETag spam N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 304 N/A test_if_none_match_and_different_etag N/A N/A self N/A N/A N/A N/A N/A N/A self req META N/A HTTP_IF_NONE_MATCH spam N/A N/A N/A self resp N/A ETag eggs N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 200 N/A test_if_modified_since_and_no_last_modified N/A N/A self N/A N/A N/A N/A N/A N/A self req META N/A HTTP_IF_MODIFIED_SINCE Sat, 12 Feb 2011 17:38:44 GMT N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 200 N/A test_no_if_modified_since_and_last_modified N/A N/A self N/A N/A N/A N/A N/A self resp N/A Last-Modified Sat, 12 Feb 2011 17:38:44 GMT N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 200 N/A test_if_modified_since_and_same_last_modified N/A N/A self N/A N/A N/A N/A N/A N/A self req META N/A HTTP_IF_MODIFIED_SINCE Sat, 12 Feb 2011 17:38:44 GMT N/A N/A N/A self resp N/A Last-Modified Sat, 12 Feb 2011 17:38:44 GMT N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 304 N/A test_if_modified_since_and_last_modified_in_the_past N/A N/A self N/A N/A N/A N/A N/A N/A self req META N/A HTTP_IF_MODIFIED_SINCE Sat, 12 Feb 2011 17:38:44 GMT N/A N/A N/A self resp N/A Last-Modified Sat, 12 Feb 2011 17:35:44 GMT N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 304 N/A test_if_modified_since_and_last_modified_in_the_future N/A N/A self N/A N/A N/A N/A N/A N/A self req META N/A HTTP_IF_MODIFIED_SINCE Sat, 12 Feb 2011 17:38:44 GMT N/A N/A N/A self resp N/A Last-Modified Sat, 12 Feb 2011 17:41:44 GMT N/A N/A self resp N/A N/A N/A ConditionalGetMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self resp status_code 200 N/A N/A XFrameOptionsMiddlewareTest N/A TestCase N/A N/A 
    Tests for the X-Frame-Options clickjacking prevention middleware.
     setUp N/A N/A self N/A N/A N/A N/A self x_frame_options N/A settings X_FRAME_OPTIONS N/A tearDown N/A N/A self N/A N/A N/A N/A settings X_FRAME_OPTIONS N/A self x_frame_options N/A test_same_origin N/A N/A self N/A N/A N/A 
        Tests that the X_FRAME_OPTIONS setting can be set to SAMEORIGIN to
        have the middleware use that value for the HTTP header.
         N/A N/A settings X_FRAME_OPTIONS SAMEORIGIN N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest N/A HttpResponse N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options SAMEORIGIN N/A N/A settings X_FRAME_OPTIONS sameorigin N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest N/A HttpResponse N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options SAMEORIGIN N/A test_deny N/A N/A self N/A N/A N/A 
        Tests that the X_FRAME_OPTIONS setting can be set to DENY to
        have the middleware use that value for the HTTP header.
         N/A N/A settings X_FRAME_OPTIONS DENY N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest N/A HttpResponse N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options DENY N/A N/A settings X_FRAME_OPTIONS deny N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest N/A HttpResponse N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options DENY N/A test_defaults_sameorigin N/A N/A self N/A N/A N/A 
        Tests that if the X_FRAME_OPTIONS setting is not set then it defaults
        to SAMEORIGIN.
         N/A N/A settings X_FRAME_OPTIONS N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest N/A HttpResponse N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options SAMEORIGIN N/A test_dont_set_if_set N/A N/A self N/A N/A N/A 
        Tests that if the X-Frame-Options header is already set then the
        middleware does not attempt to override it.
         N/A N/A settings X_FRAME_OPTIONS DENY N/A response N/A HttpResponse N/A N/A response N/A X-Frame-Options SAMEORIGIN N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest response N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options SAMEORIGIN N/A N/A settings X_FRAME_OPTIONS SAMEORIGIN N/A response N/A HttpResponse N/A N/A response N/A X-Frame-Options DENY N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest response N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options DENY N/A test_response_exempt N/A N/A self N/A N/A N/A 
        Tests that if the response has a xframe_options_exempt attribute set
        to False then it still sets the header, but if it's set to True then
        it does not.
         N/A N/A settings X_FRAME_OPTIONS SAMEORIGIN N/A response N/A HttpResponse N/A N/A response xframe_options_exempt False N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest response N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options SAMEORIGIN N/A response N/A HttpResponse N/A N/A response xframe_options_exempt True N/A r N/A N/A N/A XFrameOptionsMiddleware process_response N/A HttpRequest response N/A N/A N/A self assertEqual N/A N/A r get X-Frame-Options None None N/A test_is_extendable N/A N/A self N/A N/A N/A 
        Tests that the XFrameOptionsMiddleware method that determines the
        X-Frame-Options header value can be overridden based on something in
        the request or response.
         OtherXFrameOptionsMiddleware N/A XFrameOptionsMiddleware N/A get_xframe_options_value N/A N/A self request response N/A N/A N/A N/A getattr request sameorigin False N/A N/A SAMEORIGIN N/A N/A getattr response sameorigin False N/A N/A SAMEORIGIN N/A DENY N/A N/A N/A N/A settings X_FRAME_OPTIONS DENY N/A response N/A HttpResponse N/A N/A response sameorigin True N/A r N/A N/A N/A OtherXFrameOptionsMiddleware process_response N/A HttpRequest response N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options SAMEORIGIN N/A request N/A HttpRequest N/A N/A request sameorigin True N/A r N/A N/A N/A OtherXFrameOptionsMiddleware process_response request N/A HttpResponse N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options SAMEORIGIN N/A N/A settings X_FRAME_OPTIONS SAMEORIGIN N/A r N/A N/A N/A OtherXFrameOptionsMiddleware process_response N/A HttpRequest N/A HttpResponse N/A N/A N/A self assertEqual N/A r N/A X-Frame-Options DENY N/A N/A GZipMiddlewareTest N/A TestCase N/A N/A 
    Tests the GZip middleware.
     N/A short_string This string is too short to be worth compressing. N/A compressible_string N/A a 500 N/A uncompressible_string N/A N/A join N/A N/A chr N/A N/A random randint 0 255 N/A _ N/A xrange 500 setUp N/A N/A self N/A N/A N/A N/A self req N/A HttpRequest N/A N/A N/A self req META N/A SERVER_NAME SERVER_PORT testserver 80 N/A N/A N/A self req path N/A N/A self req path_info / N/A N/A N/A N/A self req META N/A HTTP_ACCEPT_ENCODING gzip, deflate N/A N/A N/A N/A self req META N/A HTTP_USER_AGENT Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 N/A N/A self resp N/A HttpResponse N/A N/A N/A self resp status_code 200 N/A N/A N/A self resp content N/A self compressible_string N/A N/A N/A self resp N/A Content-Type text/html; charset=UTF-8 N/A decompress N/A N/A gzipped_string N/A N/A N/A N/A N/A N/A N/A gzip GzipFile mode rb fileobj N/A N/A StringIO StringIO gzipped_string read N/A staticmethod test_compress_response N/A N/A self N/A N/A N/A 
        Tests that compression is performed on responses with compressible content.
         N/A r N/A N/A N/A GZipMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self decompress N/A r content N/A self compressible_string N/A N/A N/A self assertEqual N/A N/A r get Content-Encoding gzip N/A N/A N/A self assertEqual N/A N/A r get Content-Length N/A str N/A len N/A r content N/A test_compress_non_200_response N/A N/A self N/A N/A N/A 
        Tests that compression is performed on responses with a status other than 200.
        See #10762.
         N/A N/A N/A self resp status_code 404 N/A r N/A N/A N/A GZipMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A N/A self decompress N/A r content N/A self compressible_string N/A N/A N/A self assertEqual N/A N/A r get Content-Encoding gzip N/A test_no_compress_short_response N/A N/A self N/A N/A N/A 
        Tests that compression isn't performed on responses with short content.
         N/A N/A N/A self resp content N/A self short_string N/A r N/A N/A N/A GZipMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A r content N/A self short_string N/A N/A N/A self assertEqual N/A N/A r get Content-Encoding None N/A test_no_compress_compressed_response N/A N/A self N/A N/A N/A 
        Tests that compression isn't performed on responses that are already compressed.
         N/A N/A N/A self resp N/A Content-Encoding deflate N/A r N/A N/A N/A GZipMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A r content N/A self compressible_string N/A N/A N/A self assertEqual N/A N/A r get Content-Encoding deflate N/A test_no_compress_ie_js_requests N/A N/A self N/A N/A N/A 
        Tests that compression isn't performed on JavaScript requests from Internet Explorer.
         N/A N/A N/A N/A self req META N/A HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.00; Windows 98) N/A N/A N/A self resp N/A Content-Type application/javascript; charset=UTF-8 N/A r N/A N/A N/A GZipMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A r content N/A self compressible_string N/A N/A N/A self assertEqual N/A N/A r get Content-Encoding None N/A test_no_compress_uncompressible_response N/A N/A self N/A N/A N/A 
        Tests that compression isn't performed on responses with uncompressible content.
         N/A N/A N/A self resp content N/A self uncompressible_string N/A r N/A N/A N/A GZipMiddleware process_response N/A self req N/A self resp N/A N/A N/A self assertEqual N/A r content N/A self uncompressible_string N/A N/A N/A self assertEqual N/A N/A r get Content-Encoding None N/A N/A ETagGZipMiddlewareTest N/A TestCase N/A N/A 
    Tests if the ETag middleware behaves correctly with GZip middleware.
     N/A compressible_string N/A a 500 setUp N/A N/A self N/A N/A N/A N/A self rf N/A RequestFactory N/A test_compress_response N/A N/A self N/A N/A N/A 
        Tests that ETag is changed after gzip compression is performed.
         N/A request N/A N/A N/A self rf get / HTTP_ACCEPT_ENCODING gzip, deflate N/A response N/A N/A N/A GZipMiddleware process_response request N/A N/A N/A CommonMiddleware process_response request N/A HttpResponse N/A self compressible_string N/A gzip_etag N/A N/A response get ETag N/A request N/A N/A N/A self rf get / HTTP_ACCEPT_ENCODING N/A response N/A N/A N/A GZipMiddleware process_response request N/A N/A N/A CommonMiddleware process_response request N/A HttpResponse N/A self compressible_string N/A nogzip_etag N/A N/A response get ETag N/A N/A N/A self assertNotEqual gzip_etag nogzip_etag N/A N/A N/A ETagGZipMiddlewareTest N/A N/A override_settings USE_ETAGS True ETagGZipMiddlewareTest