def METHOD_NAME(self):
    """Sending e-invoice changes its state to 'sent'"""
    e_invoice = self._create_e_invoice()
    self._create_fetchmail_pec_server()
    e_invoice.send_to_sdi()
    self.assertEqual(e_invoice.state, "sent")