'Test: organization data should render on certificate web view if course has organization.'

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

    test_organization_data = {'name': 'test    organization', 'short_name': 'test_organization', 'description': 'Test    Organization    Description', 'active': True, 'logo': '/logo_test1.png/'}
    test_org = organizations_api.add_organization(organization_data=test_organization_data)
    organizations_api.add_organization_course(organization_data=test_org, course_id=unicode(self.course.id))
    self._add_course_certificates(count=1, signatory_count=1, is_active=True)
    test_url = get_certificate_url(user_id=self.user.id, course_id=unicode(self.course.id))
    response = self.client.get(test_url)
    self.assertIn('a    course    of    study    offered    by    test_organization,    an    online    learning    initiative    of    test    organization', response.content)
    self.assertNotIn('a    course    of    study    offered    by    testorg', response.content)
    self.assertIn('<title>test_organization    {}    Certificate    |'.format(self.course.number), response.content)
    self.assertIn('logo_test1.png', response.content)
