GnuCash 2.4.99
test_book.py
00001 from unittest import TestCase, main
00002 
00003 from gnucash import Session
00004 
00005 class BookSession( TestCase ):
00006     def setUp(self):
00007         self.ses = Session()
00008         self.book = self.ses.get_book()
00009         table = self.book.get_table()
00010         self.currency = table.lookup('CURRENCY', 'EUR')
00011 
00012 class TestBook( BookSession ):
00013     def test_markclosed(self):
00014         self.ses.end()
00015 
00016 if __name__ == '__main__':
00017     main()
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines