GnuCash
5.6-150-g038405b370+
bindings
python
tests
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
12
class
TestBook
(
BookSession
):
13
def
test_markclosed(self):
14
self.
ses
.end()
15
16
if
__name__ ==
'__main__'
:
17
main()
test_book.BookSession.ses
ses
Definition:
test_book.py:7
test_book.BookSession
Definition:
test_book.py:5
test_book.BookSession.currency
currency
Definition:
test_book.py:10
test_book.BookSession.book
book
Definition:
test_book.py:8
test_book.TestBook
Definition:
test_book.py:12
test_book.BookSession.table
table
Definition:
test_book.py:9
Generated by
1.8.14