GnuCash  5.6-150-g038405b370+
test_book.py
1 from unittest import TestCase, main
2 
3 from gnucash import Session
4 
5 class BookSession(TestCase):
6  def setUp(self):
7  self.ses = Session()
8  self.book = self.ses.get_book()
9  self.table = self.book.get_table()
10  self.currency = self.table.lookup('CURRENCY', 'EUR')
11 
13  def test_markclosed(self):
14  self.ses.end()
15 
16 if __name__ == '__main__':
17  main()