Module ImportFrom alias identifier ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad 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 NameLoad AttributeLoad NameLoad attr Call NameLoad Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad 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 NameLoad AttributeLoad NameLoad attr Call NameLoad Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad 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 NameLoad AttributeLoad NameLoad attr Call NameLoad Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad 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 NameLoad AttributeLoad NameLoad attr ListLoad TupleLoad Call NameLoad Str Num TupleLoad Call NameLoad Str Num TupleLoad Call NameLoad Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A decimal Decimal D django.test TestCase N/A mock oscar.apps.offer models oscar.test factories oscar.test.basket add_product add_products TestAFixedPriceDiscountAppliedWithCountCondition N/A TestCase N/A setUp N/A N/A self N/A N/A N/A range N/A N/A N/A N/A models Range objects create name All products includes_all_products True N/A N/A self condition N/A N/A N/A N/A models CountCondition objects create range range type N/A N/A models Condition COUNT value 3 N/A N/A self benefit N/A N/A N/A N/A models FixedPriceBenefit objects create range range type N/A N/A models Benefit FIXED_PRICE value N/A D 20.00 N/A N/A self offer N/A N/A mock Mock N/A N/A self basket N/A N/A factories create_basket empty True N/A test_applies_correctly_to_empty_basket N/A N/A self N/A N/A N/A result N/A N/A N/A self benefit apply N/A self basket N/A self condition N/A self offer N/A N/A N/A self assertEqual N/A D 0.00 N/A result discount N/A N/A N/A self assertEqual 0 N/A N/A self basket num_items_with_discount N/A N/A N/A self assertEqual 0 N/A N/A self basket num_items_without_discount N/A test_applies_correctly_to_basket_which_is_worth_less_than_value N/A N/A self N/A N/A N/A N/A add_product N/A self basket N/A D 6.00 3 N/A result N/A N/A N/A self benefit apply N/A self basket N/A self condition N/A self offer N/A N/A N/A self assertEqual N/A D 0.00 N/A result discount N/A N/A N/A self assertEqual 0 N/A N/A self basket num_items_with_discount N/A N/A N/A self assertEqual 3 N/A N/A self basket num_items_without_discount N/A test_applies_correctly_to_basket_which_is_worth_the_same_as_value N/A N/A self N/A N/A N/A N/A add_product N/A self basket N/A D 5.00 4 N/A result N/A N/A N/A self benefit apply N/A self basket N/A self condition N/A self offer N/A N/A N/A self assertEqual N/A D 0.00 N/A result discount N/A N/A N/A self assertEqual 0 N/A N/A self basket num_items_with_discount N/A N/A N/A self assertEqual 4 N/A N/A self basket num_items_without_discount N/A test_applies_correctly_to_basket_which_is_more_than_value N/A N/A self N/A N/A N/A N/A add_product N/A self basket N/A D 8.00 4 N/A result N/A N/A N/A self benefit apply N/A self basket N/A self condition N/A self offer N/A N/A N/A self assertEqual N/A D 4.00 N/A result discount N/A N/A N/A self assertEqual 3 N/A N/A self basket num_items_with_discount N/A N/A N/A self assertEqual 1 N/A N/A self basket num_items_without_discount N/A test_rounding_error_for_multiple_products N/A N/A self N/A N/A N/A N/A add_products N/A self basket N/A N/A N/A D 7.00 1 N/A N/A D 7.00 1 N/A N/A D 7.00 1 N/A result N/A N/A N/A self benefit apply N/A self basket N/A self condition N/A self offer N/A N/A N/A self assertEqual N/A D 1.00 N/A result discount N/A cumulative_discount N/A sum N/A N/A line discount_value N/A line N/A N/A N/A self basket all_lines N/A N/A N/A self assertEqual N/A result discount cumulative_discount N/A N/A N/A self assertEqual 3 N/A N/A self basket num_items_with_discount N/A N/A N/A self assertEqual 0 N/A N/A self basket num_items_without_discount N/A N/A