GnuCash
2.6.99
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
optional
python-bindings
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
table = self.book.get_table()
10
self.
currency
= 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
Generated by
1.8.6