'Generate user certificate will not raise exception in case of certificate is None.'

def test_generate_user_certificates_with_unverified_cert_status(self):

    GeneratedCertificateFactory.create(user=self.student, course_id=self.course.id, status=CertificateStatuses.unverified, mode='verified')
    with mock_passing_grade():
        with self._mock_queue(is_successful=False):
            status = certs_api.generate_user_certificates(self.student, self.course.id)
            self.assertEqual(status, None)
