'Tests audit course mode is skipped when rendering certificates page.'

@ddt.data(['audit', 'verified'], ['verified'], ['audit', 'verified', 'credit'], ['verified', 'credit'], ['professional'])
def test_non_audit_enables_cert(self, slugs):

    for slug in slugs:
        CourseModeFactory.create(course_id=self.course.id, mode_slug=slug)
    response = self.client.get_html(self._url())
    self.assertEqual(response.status_code, 200)
    self.assertNotContains(response, 'This    course    does    not    use    a    mode    that    offers    certificates.')
    self.assertNotContains(response, 'This    module    is    not    enabled.')
    self.assertContains(response, 'Loading')
