#NEWLINE# def test_applies_correctly_to_basket_which_exceeds_condition( self ) : #NEWLINE# #INDENT# add_product ( self . basket , D ( '12.00' ) , 3 ) #NEWLINE# result = self . benefit . apply ( self . basket , self . condition , self . offer ) #NEWLINE# self . assertEqual ( 2 , self . basket . num_items_with_discount ) #NEWLINE# self . assertEqual ( 1 , self . basket . num_items_without_discount ) #NEWLINE# self . assertTrue ( result . affects_shipping )