'Check that self-generated certificates are enabled or disabled for the course.'

def _assert_enabled_for_course(self, course_key, expect_enabled):

    actual_enabled = certs_api.cert_generation_enabled(course_key)
    self.assertEqual(expect_enabled, actual_enabled)
