'Make sure that Site overrides on the ENABLE_SHOPPING_CART and
ENABLE_PAID_COURSE_ENROLLMENTS are honored'

@override_settings(SITE_NAME=settings.MICROSITE_TEST_HOSTNAME)
def test_paid_course_registration(self):

    course_mode = CourseMode(course_id=self.course_with_visibility.id, mode_slug=CourseMode.DEFAULT_MODE_SLUG, mode_display_name=CourseMode.DEFAULT_MODE_SLUG, min_price=10)
    course_mode.save()
    url = reverse('about_course', args=[self.course_with_visibility.id.to_deprecated_string()])
    resp = self.client.get(url)
    self.assertEqual(resp.status_code, 200)
    self.assertIn('Enroll    in    {}'.format(self.course_with_visibility.id.course), resp.content)
    self.assertNotIn('Add    {}    to    Cart    ($10)'.format(self.course_with_visibility.id.course), resp.content)
    url = reverse('about_course', args=[self.course_with_visibility.id.to_deprecated_string()])
    resp = self.client.get(url, HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
    self.assertEqual(resp.status_code, 200)
    self.assertNotIn('Enroll    in    {}'.format(self.course_with_visibility.id.course), resp.content)
    self.assertIn('Add    {}    to    Cart    <span>($10    USD)</span>'.format(self.course_with_visibility.id.course), resp.content)
    self.assertIn('$("#add_to_cart_post").click', resp.content)
