def METHOD_NAME(cls):
    super().METHOD_NAME()
    cls.company_model = cls.env["res.company"]
    cls.certificate_model = cls.env["l10n_br_fiscal.certificate"]
    cls.company = cls._create_compay()
    cls._switch_user_company(cls.env.user, cls.company)
    cls.cert_country = "BR"
    cls.cert_issuer_a = "EMISSOR A TESTE"
    cls.cert_issuer_b = "EMISSOR B TESTE"
    cls.cert_subject_valid = "CERTIFICADO VALIDO TESTE"
    cls.cert_date_exp = fields.Datetime.today() + timedelta(days=365)
    cls.cert_subject_invalid = "CERTIFICADO INVALIDO TESTE"
    cls.cert_passwd = "123456"
    cls.cert_name = "{} - {} - {} - Valid: {}".format(
        "NF-E",
        "A1",
        cls.cert_subject_valid,
        format_date(cls.env, cls.cert_date_exp),
    )
    cls.certificate_valid = misc.create_fake_certificate_file(
        valid=True,
        passwd=cls.cert_passwd,
        issuer=cls.cert_issuer_a,
        country=cls.cert_country,
        subject=cls.cert_subject_valid,
    )
    cls.certificate_invalid = misc.create_fake_certificate_file(
        valid=False,
        passwd=cls.cert_passwd,
        issuer=cls.cert_issuer_b,
        country=cls.cert_country,
        subject=cls.cert_subject_invalid,
    )