GnuCash  5.6-150-g038405b370+
Public Member Functions
test_business.TestBusiness Class Reference
Inheritance diagram for test_business.TestBusiness:
test_business.BusinessSession test_book.BookSession

Public Member Functions

def test_equal (self)
 
def test_employee_name (self)
 
def test_post (self)
 
def test_owner (self)
 
def test_commodities (self)
 
def test_invoice_transaction (self)
 
- Public Member Functions inherited from test_business.BusinessSession
def setUp (self)
 
- Public Member Functions inherited from test_book.BookSession
def setUp (self)
 

Additional Inherited Members

- Data Fields inherited from test_business.BusinessSession
 today
 
 bank
 
 income
 
 receivable
 
 customer
 
 vendor
 
 employee
 
 job
 
 invoice
 
- Data Fields inherited from test_book.BookSession
 ses
 
 book
 
 table
 
 currency
 

Detailed Description

Definition at line 46 of file test_business.py.

Member Function Documentation

◆ test_invoice_transaction()

def test_business.TestBusiness.test_invoice_transaction (   self)
Test that you can get the posted transaction from a posted invoice and that you can get the invoice back from the transaction.

Definition at line 77 of file test_business.py.

77  def test_invoice_transaction(self):
78  """
79  Test that you can get the posted transaction from a posted invoice and that you can get the invoice back from the transaction.
80  """
81  posted_transaction = self.invoice.GetPostedTxn()
82  self.assertTrue( posted_transaction != None )
83  invoice_from_transaction = posted_transaction.GetInvoiceFromTxn()
84  self.assertTrue( invoice_from_transaction != None and invoice_from_transaction.GetID() == self.invoice.GetID() )
85 

The documentation for this class was generated from the following file: