Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str AttributeLoad NameLoad attr Str Str Num Str Str decorator_list FunctionDef arguments args NameParam defaults kwarg body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str AttributeLoad NameLoad attr Str Str Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Num keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A django.test TestCase django.core.exceptions ValidationError oscar.core.compat get_user_model oscar.apps.catalogue.reviews models oscar.test.factories create_product oscar.test.factories UserFactory N/A User N/A get_user_model TestAnAnonymousReview N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self product N/A create_product N/A N/A self data N/A product title body score name email N/A self product This product is lovely I really like this cheese 0 JR Hartley hartley@example.com N/A review N/A N/A self N/A kwargs N/A N/A kwargs N/A N/A data N/A N/A N/A self data copy N/A N/A N/A data update kwargs N/A N/A data N/A self data N/A N/A N/A models ProductReview data N/A test_can_be_created N/A N/A self N/A N/A N/A review N/A N/A self review N/A N/A N/A review full_clean N/A test_requires_a_title N/A N/A self N/A N/A N/A review N/A N/A self review title N/A N/A N/A self assertRaises ValidationError N/A review full_clean N/A test_requires_a_body N/A N/A self N/A N/A N/A review N/A N/A self review body N/A N/A N/A self assertRaises ValidationError N/A review full_clean N/A test_requires_a_name N/A N/A self N/A N/A N/A review N/A N/A self review name N/A N/A N/A self assertRaises ValidationError N/A review full_clean N/A test_requires_an_email_address N/A N/A self N/A N/A N/A review N/A N/A self review email N/A N/A N/A self assertRaises ValidationError N/A review full_clean N/A test_requires_non_whitespace_title N/A N/A self N/A N/A N/A review N/A N/A self review title N/A N/A N/A self assertRaises ValidationError N/A review full_clean N/A test_starts_with_no_votes N/A N/A self N/A N/A N/A review N/A N/A self review N/A N/A N/A review save N/A N/A N/A self assertFalse N/A review has_votes N/A N/A N/A self assertEqual 0 N/A review num_up_votes N/A N/A N/A self assertEqual 0 N/A review num_down_votes N/A test_has_reviewer_name_property N/A N/A self N/A N/A N/A review N/A N/A self review name Dave N/A N/A N/A self assertEqual Dave N/A review reviewer_name N/A N/A TestAUserReview N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self product N/A create_product N/A N/A self user N/A UserFactory first_name Tom last_name Thumb N/A N/A self data N/A product title body score user N/A self product This product is lovely I really like this cheese 0 N/A self user N/A review N/A N/A self N/A kwargs N/A N/A kwargs N/A N/A data N/A N/A N/A self data copy N/A N/A N/A data update kwargs N/A N/A data N/A self data N/A N/A N/A models ProductReview data N/A test_can_be_created N/A N/A self N/A N/A N/A review N/A N/A self review N/A N/A N/A review full_clean N/A test_requires_a_title N/A N/A self N/A N/A N/A review N/A N/A self review title N/A N/A N/A self assertRaises ValidationError N/A review full_clean N/A test_requires_a_body N/A N/A self N/A N/A N/A review N/A N/A self review body N/A N/A N/A self assertRaises ValidationError N/A review full_clean N/A test_has_reviewer_name_property N/A N/A self N/A N/A N/A review N/A N/A self review N/A N/A N/A self assertEqual Tom Thumb N/A review reviewer_name N/A N/A TestVotingOnAReview N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self product N/A create_product N/A N/A self user N/A UserFactory N/A N/A self voter N/A UserFactory N/A N/A self review N/A N/A N/A N/A self product reviews create title This is nice score 3 body This is the body user N/A self user N/A test_updates_totals_for_upvote N/A N/A self N/A N/A N/A N/A N/A N/A self review vote_up N/A self voter N/A N/A N/A self assertTrue N/A N/A self review has_votes N/A N/A N/A self assertEqual 1 N/A N/A self review total_votes N/A N/A N/A self assertEqual 1 N/A N/A self review delta_votes N/A test_updates_totals_for_downvote N/A N/A self N/A N/A N/A N/A N/A N/A self review vote_down N/A self voter N/A N/A N/A self assertTrue N/A N/A self review has_votes N/A N/A N/A self assertEqual 1 N/A N/A self review total_votes N/A N/A N/A self assertEqual -1 N/A N/A self review delta_votes N/A test_is_permitted_for_normal_user N/A N/A self N/A N/A N/A N/A is_allowed reason N/A N/A N/A self review can_user_vote N/A self voter N/A N/A N/A self assertTrue is_allowed reason N/A test_is_not_permitted_for_reviewer N/A N/A self N/A N/A N/A N/A is_allowed reason N/A N/A N/A self review can_user_vote N/A self user N/A N/A N/A self assertFalse is_allowed reason N/A test_is_not_permitted_for_previous_voter N/A N/A self N/A N/A N/A N/A N/A N/A self review vote_up N/A self voter N/A N/A is_allowed reason N/A N/A N/A self review can_user_vote N/A self voter N/A N/A N/A self assertFalse is_allowed reason N/A N/A