mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
18 lines
412 B
Python
18 lines
412 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()
|