'Helper method that updates mocked discount data with
- a flag indicating whether the program price is discounted
- the amount of the discount (0 in case there\'s no discount)'

def _update_discount_data(self, mock_discount_data):

    program_discounted_price = mock_discount_data['total_incl_tax']
    program_full_price = mock_discount_data['total_incl_tax_excl_discounts']
    mock_discount_data.update({'is_discounted': (program_discounted_price < program_full_price), 'discount_value': (program_full_price - program_discounted_price)})
