'Tests there is no certificate create message in the queue if generate_pdf is False'

def test_no_create_action_in_queue_for_html_view_certs(self):

    with mock_passing_grade():
        with patch.object(XQueueInterface, 'send_to_queue') as mock_send:
            self.xqueue.add_cert(self.user, self.course.id, generate_pdf=False)
    self.assertFalse(mock_send.called)
    certificate = GeneratedCertificate.eligible_certificates.get(user=self.user, course_id=self.course.id)
    self.assertEqual(certificate.status, CertificateStatuses.downloadable)
    self.assertIsNotNone(certificate.verify_uuid)
