Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeStore NameLoad attr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call Call NameLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A djangoflash.decorators test cases.
 unittest TestCase django.http HttpRequest djangoflash.decorators keep_messages djangoflash.models FlashScope N/A __all__ N/A KeepMessagesDecoratorTestCase view_method N/A N/A request N/A N/A N/A Function that simulates a Django view.
     N/A N/A hasattr request flash N/A N/A N/A N/A N/A request flash update N/A True N/A False N/A KeepMessagesDecoratorTestCase N/A TestCase N/A N/A Tests the keep_messages decorator.
     setUp N/A N/A self N/A N/A N/A Create a request with an used message inside the flash.
         N/A N/A self request N/A HttpRequest N/A N/A N/A self request flash N/A self flash N/A FlashScope N/A N/A N/A self flash N/A message Message N/A N/A N/A N/A self flash update N/A test_decorator_with_no_flash N/A N/A self N/A N/A N/A Decorators: keep_messages should not break when there's no flash scope attached to the request.
         N/A N/A self request N/A HttpRequest N/A view N/A keep_messages view_method N/A N/A N/A self assertFalse N/A view N/A self request N/A test_decorator_with_no_args N/A N/A self N/A N/A N/A Decorators: keep_messages with no args should avoid the removal of all flash-scoped values. 
         N/A view N/A keep_messages view_method N/A N/A N/A self assertEqual Message N/A N/A self flash N/A message N/A N/A N/A self assertTrue N/A view N/A self request N/A N/A N/A self assertEqual Message N/A N/A self flash N/A message N/A N/A view_method N/A self request N/A N/A N/A self assertFalse N/A message N/A self flash N/A test_decorator_with_empty_args N/A N/A self N/A N/A N/A Decorators: keep_messages with empty args should avoid the removal of all flash-scoped values. 
         N/A view N/A N/A keep_messages view_method N/A N/A N/A self assertEqual Message N/A N/A self flash N/A message N/A N/A N/A self assertTrue N/A view N/A self request N/A N/A N/A self assertEqual Message N/A N/A self flash N/A message N/A N/A view_method N/A self request N/A N/A N/A self assertFalse N/A message N/A self flash N/A test_decorator_with_args N/A N/A self N/A N/A N/A Decorators: keep_messages should avoid the removal of specific flash-scoped values.
         N/A view N/A N/A keep_messages message another_message view_method N/A N/A N/A self assertEqual Message N/A N/A self flash N/A message N/A N/A N/A self assertTrue N/A view N/A self request N/A N/A N/A self assertEqual Message N/A N/A self flash N/A message N/A N/A view_method N/A self request N/A N/A N/A self assertFalse N/A message N/A self flash N/A test_decorator_with_invalid_arg N/A N/A self N/A N/A N/A Decorators: keep_messages should not avoid the removal of flash-scoped values.
         N/A view N/A N/A keep_messages another_message view_method N/A N/A N/A self assertEqual Message N/A N/A self flash N/A message N/A N/A N/A self assertTrue N/A view N/A self request N/A N/A N/A self assertFalse N/A message N/A self flash N/A N/A