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

def test_audit_only_disables_cert(self):

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