def METHOD_NAME(self):
    """Check anaf exception."""
    original_anaf_url = res_partner.ANAF_URL
    res_partner.ANAF_URL = (
        "https://webservicesp.anaf.ro/PlatitorTvaRest/api/v7/ws/tvaERROR"
    )
    error, res = self.mainpartner._get_Anaf("30834857")
    self.assertEqual(res, {})
    self.assertTrue(len(error) > 3)
    self.mainpartner.vat = "RO30834857"
    res = self.mainpartner.ro_vat_change()
    self.assertTrue(res.get("warning"))
    res_partner.ANAF_URL = original_anaf_url