Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Expr Call NameLoad NameLoad NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Expr Call NameLoad NameLoad BinOpAdd SubscriptLoad NameLoad Slice Num ListLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Expr Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad ListLoad Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad attr NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpSub BinOpDiv BinOpSub AttributeLoad NameLoad attr Num Num Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list decorator_list
N/A django.contrib.messages constants django.contrib.messages.storage.fallback FallbackStorage CookieStorage django.contrib.messages.tests.base BaseTests django.contrib.messages.tests.test_cookie set_cookie_data stored_cookie_messages_count django.contrib.messages.tests.test_session set_session_data stored_session_messages_count django.test TestCase FallbackTest N/A BaseTests TestCase N/A N/A storage_class FallbackStorage get_request N/A N/A self N/A N/A N/A N/A self session N/A N/A request N/A N/A N/A super FallbackTest self get_request N/A N/A request session N/A self session N/A request N/A get_cookie_storage N/A N/A self storage N/A N/A N/A N/A N/A storage storages N/A -2 N/A get_session_storage N/A N/A self storage N/A N/A N/A N/A N/A storage storages N/A -1 N/A stored_cookie_messages_count N/A N/A self storage response N/A N/A N/A N/A stored_cookie_messages_count N/A N/A self get_cookie_storage storage response N/A stored_session_messages_count N/A N/A self storage response N/A N/A N/A N/A stored_session_messages_count N/A N/A self get_session_storage storage N/A stored_messages_count N/A N/A self storage response N/A N/A N/A 
        Return the storage totals from both cookie and session backends.
         N/A total N/A N/A N/A self stored_cookie_messages_count storage response N/A N/A self stored_session_messages_count storage response N/A total N/A test_get N/A N/A self N/A N/A N/A request N/A N/A self get_request N/A storage N/A N/A self storage_class request N/A cookie_storage N/A N/A self get_cookie_storage storage N/A example_messages N/A N/A str i N/A i N/A range 5 N/A N/A set_cookie_data cookie_storage example_messages N/A N/A N/A N/A self get_session_storage storage _get None N/A N/A N/A self assertEqual N/A list storage example_messages N/A test_get_empty N/A N/A self N/A N/A N/A request N/A N/A self get_request N/A storage N/A N/A self storage_class request N/A N/A N/A N/A self get_session_storage storage _get None N/A N/A N/A self assertEqual N/A list storage N/A N/A test_get_fallback N/A N/A self N/A N/A N/A request N/A N/A self get_request N/A storage N/A N/A self storage_class request N/A cookie_storage N/A N/A self get_cookie_storage storage N/A session_storage N/A N/A self get_session_storage storage N/A example_messages N/A N/A str i N/A i N/A range 5 N/A N/A set_cookie_data cookie_storage N/A N/A example_messages N/A 4 N/A N/A CookieStorage not_finished N/A N/A set_session_data session_storage N/A example_messages N/A 4 N/A N/A N/A self assertEqual N/A list storage example_messages N/A test_get_fallback_only N/A N/A self N/A N/A N/A request N/A N/A self get_request N/A storage N/A N/A self storage_class request N/A cookie_storage N/A N/A self get_cookie_storage storage N/A session_storage N/A N/A self get_session_storage storage N/A example_messages N/A N/A str i N/A i N/A range 5 N/A N/A set_cookie_data cookie_storage N/A N/A CookieStorage not_finished encode_empty True N/A N/A set_session_data session_storage example_messages N/A N/A N/A self assertEqual N/A list storage example_messages N/A test_flush_used_backends N/A N/A self N/A N/A N/A request N/A N/A self get_request N/A storage N/A N/A self storage_class request N/A cookie_storage N/A N/A self get_cookie_storage storage N/A session_storage N/A N/A self get_session_storage storage N/A N/A set_cookie_data cookie_storage N/A cookie N/A CookieStorage not_finished N/A N/A set_session_data session_storage N/A session N/A response N/A N/A self get_response N/A N/A list storage N/A N/A N/A storage update response N/A session_storing N/A N/A self stored_session_messages_count storage response N/A N/A N/A self assertEqual session_storing 0 N/A test_no_fallback N/A N/A self N/A N/A N/A 
        Confirms that:

        (1) A short number of messages whose data size doesn't exceed what is
        allowed in a cookie will all be stored in the CookieBackend.

        (2) If the CookieBackend can store all messages, the SessionBackend
        won't be written to at all.
         N/A storage N/A N/A self get_storage N/A response N/A N/A self get_response N/A N/A N/A N/A self get_session_storage storage _store None N/A i N/A range 5 N/A N/A N/A N/A storage add N/A constants INFO N/A N/A str i 100 N/A N/A N/A storage update response N/A cookie_storing N/A N/A self stored_cookie_messages_count storage response N/A N/A N/A self assertEqual cookie_storing 5 N/A session_storing N/A N/A self stored_session_messages_count storage response N/A N/A N/A self assertEqual session_storing 0 N/A test_session_fallback N/A N/A self N/A N/A N/A 
        Confirms that, if the data exceeds what is allowed in a cookie,
        messages which did not fit are stored in the SessionBackend.
         N/A storage N/A N/A self get_storage N/A response N/A N/A self get_response N/A msg_size N/A int N/A N/A N/A N/A CookieStorage max_cookie_size 54 4.5 37 N/A i N/A range 5 N/A N/A N/A N/A storage add N/A constants INFO N/A N/A str i msg_size N/A N/A N/A storage update response N/A cookie_storing N/A N/A self stored_cookie_messages_count storage response N/A N/A N/A self assertEqual cookie_storing 4 N/A session_storing N/A N/A self stored_session_messages_count storage response N/A N/A N/A self assertEqual session_storing 1 N/A test_session_fallback_only N/A N/A self N/A N/A N/A 
        Confirms that large messages, none of which fit in a cookie, are stored
        in the SessionBackend (and nothing is stored in the CookieBackend).
         N/A storage N/A N/A self get_storage N/A response N/A N/A self get_response N/A N/A N/A storage add N/A constants INFO N/A x 5000 N/A N/A N/A storage update response N/A cookie_storing N/A N/A self stored_cookie_messages_count storage response N/A N/A N/A self assertEqual cookie_storing 0 N/A session_storing N/A N/A self stored_session_messages_count storage response N/A N/A N/A self assertEqual session_storing 1 N/A N/A