'Dry method to check certificate invalidated entry does not exists.'

def assertInvalidatedCertDoesNotExist(self):

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