'If the course has a SKU, the view should get authorization from the E-Commerce API before enrolling
the user in the course. If authorization is approved, the user should be redirected to the user dashboard.'

@ddt.data(True, False)
def test_course_with_honor_seat_sku(self, user_is_active):

    self.user.is_active = user_is_active
    self.user.save()
    return_value = {'id': TEST_BASKET_ID, 'payment_data': None, 'order': {'number': TEST_ORDER_NUMBER}}
    with mock_create_basket(response=return_value):
        self._test_successful_ecommerce_api_call()
        with mock.patch('student.models.RegistrationCookieConfiguration.current') as config:
            instance = config.return_value
            instance.utm_cookie_name = UTM_COOKIE_NAME
            self._test_successful_ecommerce_api_call(utm_tracking_present=True)
