1 from unittest
import main
3 from gnucash
import Book, Account, Split
5 from test_book
import BookSession
9 BookSession.setUp(self)
15 self.assertEquals(
'', self.account.GetName() )
16 self.account.SetName(NAME)
17 self.assertEquals( NAME, self.account.GetName() )
21 self.assertTrue(self.account.insert_split(SPLIT))
22 self.assertTrue(self.account.remove_split(SPLIT))
24 if __name__ ==
'__main__':
struct account_s Account
Account in Gnucash. This is the typename for an account. The actual structure is defined in the priva...
struct split_s Split
Split in Gnucash. A "split" is more commonly referred to as a "entry" in a "transaction". Each split belongs to one Account and one Transaction. The split is one out of several parts a Transaction is divided into.