def METHOD_NAME(self):
    """Sending e-invoice without file content must be blocked"""
    e_invoice = self._create_e_invoice()
    self._create_fetchmail_pec_server()
    e_invoice.datas = False
    with self.assertRaises(UserError):
        e_invoice.send_to_sdi()