'Test that link urls in certificate web view are customized according to site branding and
microsite configuration.'

@override_settings(FEATURES=FEATURES_WITH_CERTS_ENABLED)
def test_certificate_branding(self):

    self._add_course_certificates(count=1, signatory_count=1, is_active=True)
    self.course.save()
    self.store.update_item(self.course, self.user.id)
    test_url = get_certificate_url(user_id=self.user.id, course_id=unicode(self.course.id))
    response = self.client.get(test_url, HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
    self.assertContains(response, settings.MICROSITE_CONFIGURATION['test_site']['logo_image_url'])
    self.assertContains(response, settings.MICROSITE_CONFIGURATION['test_site']['urls']['ABOUT'])
    self.assertContains(response, settings.MICROSITE_CONFIGURATION['test_site']['urls']['PRIVACY'])
    self.assertContains(response, settings.MICROSITE_CONFIGURATION['test_site']['urls']['TOS_AND_HONOR'])
