def METHOD_NAME(self):
    """Re-sending e-invoice raises UserError"""
    e_invoice = self._create_e_invoice()
    self._create_fetchmail_pec_server()
    e_invoice.send_to_sdi()
    self.assertEqual(e_invoice.state, "sent")
    # Cannot re-send e-invoice whose state is 'sent'
    with self.assertRaises(UserError):
        e_invoice.send_to_sdi()
    # Cannot reset e-invoice whose state is 'sent'
    with self.assertRaises(UserError):
        e_invoice.reset_to_ready()