'Test no message sent to Xqueue if HTML certificate view is enabled'

@patch.dict(settings.FEATURES, {'CERTIFICATES_HTML_VIEW': True})
def test_new_cert_requests_returns_generating_for_html_certificate(self):

    self._setup_course_certificate()
    with mock_passing_grade():
        certs_api.generate_user_certificates(self.student, self.course.id)
    cert = GeneratedCertificate.eligible_certificates.get(user=self.student, course_id=self.course.id)
    self.assertEqual(cert.status, CertificateStatuses.downloadable)
