Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
Finvoice file may contain more than one message.

Message consists of:
 * SOAP-Envelop (ebxml) (optional)
 * Finvoice-xml

src/f/i/FinvoiceLib-0.1.13/finvoicelib/reader/__init__.py   FinvoiceLib(Download)
 
 
from finvoicelib.reader.finvoice_reader import Reader
 

src/f/i/FinvoiceLib-0.1.13/finvoicelib/__init__.py   FinvoiceLib(Download)
 
 
from finvoicelib.reader.finvoice_reader import Reader
from finvoicelib.wrapper import FinvoiceWrapper
 

src/f/i/FinvoiceLib-0.1.13/finvoicelib/tests/reader/test_reader.py   FinvoiceLib(Download)
from StringIO import StringIO
 
from finvoicelib.reader.finvoice_reader import Reader
from finvoicelib.tests import FinvoiceTestCase
 
    def test_init_with_pulli(self):
        """
        Test finvoice.reader.Reader.__init__ with "Pulli" finvoice
        """
        reader = Reader(self.get_pulli_finvoice())
    def test_init_with_pankkiyhdistys_finvoice(self):
        """
        Test finvoice.reader.Reader.__init__ with "pankkiyhdistys" finvoice
        """
        reader = Reader(self.get_pankkiyhdistys_finvoice())
        data = pulli_data + '\n' + pankkiyhdistys_data
        f = StringIO(data)
        reader = Reader(f)
        self.failUnless(len(reader.messages) == 2)
        self.assertEqual(reader.messages[0].envelope_tree, None)