'Test: Facebook share URL should be visible when web cert called from within a white label
site and it should use white label site\'s FACEBOOK_APP_ID.'

@override_settings(FEATURES=FEATURES_WITH_CERTS_ENABLED)
@patch.dict('django.conf.settings.SOCIAL_SHARING_SETTINGS', {'CERTIFICATE_FACEBOOK': True})
def test_facebook_share_microsites(self):

    self._add_course_certificates(count=1, signatory_count=1, is_active=True)
    test_url = get_certificate_url(course_id=self.cert.course_id, uuid=self.cert.verify_uuid)
    response = self.client.get(test_url, HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
    self.assertEqual(response.status_code, 200)
    self.assertIn('Post    on    Facebook', response.content)
    self.assertIn(settings.MICROSITE_CONFIGURATION['test_site']['FACEBOOK_APP_ID'], response.content)
