Files
gnucash/bindings/python/tests/test_book.py
Geert Janssens 83d14e1c1c Restructure the src directory
It is split into
- /libgnucash (for the non-gui bits)
- /gnucash (for the gui)
- /common (misc source files used by both)
- /bindings (currently only holds python bindings)

This is the first step in restructuring the code. It will need much
more fine tuning later on.
2017-08-10 18:45:00 +02:00

18 lines
416 B
Python

from unittest import TestCase, main
from gnucash import Session
class BookSession( TestCase ):
def setUp(self):
self.ses = Session()
self.book = self.ses.get_book()
self.table = self.book.get_table()
self.currency = self.table.lookup('CURRENCY', 'EUR')
class TestBook( BookSession ):
def test_markclosed(self):
self.ses.end()
if __name__ == '__main__':
main()