'Test that get_certificate_header_context from certificates api
returns data customized according to site branding.'

@set_microsite(settings.MICROSITE_CONFIGURATION['test_site']['domain_prefix'])
def test_certificate_header_data(self):

    CourseModeFactory.create(course_id=self.COURSE_KEY, mode_slug=CourseMode.HONOR)
    data = certs_api.get_certificate_header_context(is_secure=True)
    self.assertItemsEqual(data.keys(), ['logo_src', 'logo_url'])
    self.assertIn(settings.MICROSITE_CONFIGURATION['test_site']['logo_image_url'], data['logo_src'])
    self.assertIn(settings.MICROSITE_CONFIGURATION['test_site']['SITE_NAME'], data['logo_url'])
