def METHOD_NAME(self):
    dummy = self.model.create(
        {
            "name": "Dummy",
            "cnpj_cpf": "88.570.377/0001-27",
            "certificate_ecnpj_id": self.cert.id,
        }
    )
    time.sleep(1)  # to avoid too many requests
    dummy._onchange_cnpj_cpf()
    dummy.ie_search(self.retorno)
    self.assertEqual(dummy.inscr_est, "528388258640")