'Check whether the button says "enable" or "disable" cert generation.'

def _assert_enable_certs_button(self, is_enabled):

    response = self.client.get(self.url)
    expected_html = ('Enable    Student-Generated    Certificates' if is_enabled else 'Disable    Student-Generated    Certificates')
    self.assertContains(response, expected_html)
