def METHOD_NAME(self):
    """Create and check a valid certificate"""
    cert = self.certificate_model.create(
        {
            "type": "nf-e",
            "subtype": "a1",
            "password": self.cert_passwd,
            "file": self.certificate_valid,
        }
    )
    self.assertEqual(cert.issuer_name, self.cert_issuer_a)
    self.assertEqual(cert.owner_name, self.cert_subject_valid)
    self.assertEqual(cert.date_expiration.year, self.cert_date_exp.year)
    self.assertEqual(cert.date_expiration.month, self.cert_date_exp.month)
    self.assertEqual(cert.date_expiration.day, self.cert_date_exp.day)
    self.assertEqual(cert.name, self.cert_name)
    self.assertEqual(cert.is_valid, True)