'Dry method to check certificate invalidated entry exists.'

def assertInvalidatedCertExists(self):

    self.assertTrue(CertificateInvalidation.objects.filter(generated_certificate__user=self.student, active=True).exists())
