'Two scenarios are being validated here -- authenticated/known user and unauthenticated/anonymous user
For a known user we expect the checkout link to point to Otto in a scenario where the CommerceConfiguration
is active and the course mode is PROFESSIONAL.'

@ddt.data(True, False)
@unittest.skipUnless(settings.FEATURES.get('ENABLE_SHOPPING_CART'), 'Shopping    Cart    not    enabled    in    settings')
@patch.dict(settings.FEATURES, {'ENABLE_PAID_COURSE_REGISTRATION': True})
def test_ecommerce_checkout_shopping_cart_enabled(self, is_anonymous):

    if (not is_anonymous):
        self.assert_enrollment_link_present(is_anonymous=is_anonymous)
    else:
        self.assertEqual(EcommerceService().is_enabled(AnonymousUser()), False)
