'Verify that if certificate is marked as invalid than method will return
True.'

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

    generated_cert = self._generate_cert(status)
    self._invalidate_certificate(generated_cert, True)
    self.assertTrue(certs_api.is_certificate_invalid(self.student, self.course.id))
