'Test: Twitter sharing default text for microsites.'

@override_settings(FEATURES=FEATURES_WITH_CERTS_ENABLED)
def test_twitter_default_text_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)
    twitter_text = 'Twitter    text    on    Test    Site'
    social_sharing_settings = dict(CERTIFICATE_TWITTER=True, CERTIFICATE_TWITTER_TEXT=twitter_text)
    with patch('django.conf.settings.MICROSITE_CONFIGURATION', {'test_site': dict(settings.MICROSITE_CONFIGURATION['test_site'], SOCIAL_SHARING_SETTINGS=social_sharing_settings)}):
        response = self.client.get(test_url, HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
        self.assertContains(response, twitter_text)
