Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list decorator_list
N/A __future__ unicode_literals django.test TestCase django.core.urlresolvers reverse django.template Template Context django.core.cache cache core.tests utils models Comment models CommentLike forms LikeForm tags render_like_form LikeViewTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A cache clear N/A N/A self user N/A N/A utils create_user N/A N/A self category N/A N/A utils create_category N/A N/A self topic N/A N/A utils create_topic category N/A self category user N/A self user N/A N/A self comment N/A N/A utils create_comment topic N/A self topic N/A test_like_create N/A N/A self N/A N/A N/A 
        create like
         N/A N/A N/A utils login self N/A form_data N/A N/A response N/A N/A N/A self client post N/A reverse spirit:comment:like:create kwargs N/A comment_id N/A N/A self comment pk form_data N/A N/A N/A self assertRedirects response N/A N/A N/A self comment get_absolute_url status_code 302 target_status_code 302 N/A N/A N/A self assertEqual N/A len N/A N/A N/A CommentLike objects all 1 N/A test_like_create_next N/A N/A self N/A N/A N/A 
        create like using next
         N/A N/A N/A utils login self N/A form_data N/A next /fakepath/ N/A response N/A N/A N/A self client post N/A reverse spirit:comment:like:create kwargs N/A comment_id N/A N/A self comment pk form_data N/A N/A N/A self assertRedirects response /fakepath/ status_code 302 target_status_code 404 N/A test_like_create_invalid N/A N/A self N/A N/A N/A 
        create like invalid
         N/A N/A N/A N/A CommentLike objects create user N/A self user comment N/A self comment N/A N/A N/A utils login self N/A form_data N/A N/A response N/A N/A N/A self client post N/A reverse spirit:comment:like:create kwargs N/A comment_id N/A N/A self comment pk form_data N/A N/A N/A self assertEqual N/A response status_code 200 N/A test_like_create_comment_increase_likes_count N/A N/A self N/A N/A N/A 
        Should increase the comment's likes_count
         N/A N/A N/A utils login self N/A form_data N/A N/A response N/A N/A N/A self client post N/A reverse spirit:comment:like:create kwargs N/A comment_id N/A N/A self comment pk form_data N/A N/A N/A self assertEqual N/A response status_code 302 N/A N/A N/A self assertEqual N/A N/A N/A N/A Comment objects get pk N/A N/A self comment pk likes_count 1 N/A test_like_delete N/A N/A self N/A N/A N/A 
        delete like
         N/A N/A N/A utils login self N/A like N/A N/A N/A CommentLike objects create user N/A self user comment N/A self comment N/A form_data N/A N/A response N/A N/A N/A self client post N/A reverse spirit:comment:like:delete kwargs N/A pk N/A like pk form_data N/A N/A N/A self assertRedirects response N/A N/A N/A self comment get_absolute_url status_code 302 target_status_code 302 N/A N/A N/A self assertEqual N/A len N/A N/A N/A CommentLike objects all 0 N/A test_like_delete_next N/A N/A self N/A N/A N/A 
        delete like using next
         N/A N/A N/A utils login self N/A like N/A N/A N/A CommentLike objects create user N/A self user comment N/A self comment N/A form_data N/A next /fakepath/ N/A response N/A N/A N/A self client post N/A reverse spirit:comment:like:delete kwargs N/A pk N/A like pk form_data N/A N/A N/A self assertRedirects response /fakepath/ status_code 302 target_status_code 404 N/A test_like_delete_comment_decrease_likes_count N/A N/A self N/A N/A N/A 
        Should decrease the comment's likes_count
         N/A N/A N/A utils login self N/A comment N/A N/A utils create_comment topic N/A self topic likes_count 1 N/A like N/A N/A N/A CommentLike objects create user N/A self user comment comment N/A form_data N/A N/A response N/A N/A N/A self client post N/A reverse spirit:comment:like:delete kwargs N/A pk N/A like pk form_data N/A N/A N/A self assertEqual N/A response status_code 302 N/A N/A N/A self assertEqual N/A N/A N/A N/A Comment objects get pk N/A comment pk likes_count 0 N/A N/A LikeFormTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A cache clear N/A N/A self user N/A N/A utils create_user N/A N/A self category N/A N/A utils create_category N/A N/A self topic N/A N/A utils create_topic category N/A self category user N/A self user N/A N/A self comment N/A N/A utils create_comment user N/A self user topic N/A self topic N/A test_like_create N/A N/A self N/A N/A N/A 
        create like
         N/A form_data N/A N/A form N/A LikeForm data form_data N/A N/A form comment N/A self comment N/A N/A form user N/A self user N/A N/A N/A self assertEqual N/A N/A form is_valid True N/A test_like_create_invalid N/A N/A self N/A N/A N/A 
        create like twice
         N/A N/A N/A N/A CommentLike objects create user N/A self user comment N/A self comment N/A form_data N/A N/A form N/A LikeForm data form_data N/A N/A form comment N/A self comment N/A N/A form user N/A self user N/A N/A N/A self assertEqual N/A N/A form is_valid False N/A N/A LikeTemplateTagsTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A cache clear N/A N/A self user N/A N/A utils create_user N/A N/A self category N/A N/A utils create_category N/A N/A self topic N/A N/A utils create_topic category N/A self category user N/A self user N/A N/A self comment N/A N/A utils create_comment topic N/A self topic N/A test_like_render_like_form N/A N/A self N/A N/A N/A 
        should display the like form
         N/A template N/A Template {% load spirit_tags %}{% render_like_form comment=comment like=like %} N/A data N/A comment like N/A self comment None N/A N/A N/A template render N/A Context data N/A context N/A render_like_form data N/A N/A N/A self assertEqual N/A context N/A next None N/A N/A N/A self assertIsInstance N/A context N/A form LikeForm N/A N/A N/A self assertEqual N/A context N/A comment_id N/A N/A self comment pk N/A N/A N/A self assertEqual N/A context N/A like None N/A like N/A N/A N/A CommentLike objects create user N/A self user comment N/A self comment N/A N/A data N/A like like N/A N/A N/A template render N/A Context data N/A context N/A render_like_form data N/A N/A N/A self assertEqual N/A context N/A like like N/A N/A