'Verify method return True if certificate has valid status but it is
marked as invalid in CertificateInvalidation table.'

@ddt.data(CertificateStatuses.generating, CertificateStatuses.downloadable, CertificateStatuses.notpassing, CertificateStatuses.error, CertificateStatuses.unverified, CertificateStatuses.deleted, CertificateStatuses.unavailable)
def test_method_with_all_statues(self, status):

    certificate = self._generate_cert(status)
    CertificateInvalidationFactory.create(generated_certificate=certificate, invalidated_by=self.global_staff, active=True)
    with self.assertNumQueries(2):
        self.assertTrue(certs_api.is_certificate_invalid(self.student, self.course.id))
