GnuCash 7574033+
Loading...
Searching...
No Matches
test_commodity.TestCommodityNamespace Class Reference
Inheritance diagram for test_commodity.TestCommodityNamespace:
test_commodity.CommoditySession

Public Member Functions

 test_namespaces (self)
 test_namespaces_list (self)
Public Member Functions inherited from test_commodity.CommoditySession
 setUp (self)
 tearDown (self)

Additional Inherited Members

Data Fields inherited from test_commodity.CommoditySession
 ses = Session()
 book = self.ses.get_book()
 table = self.book.get_table()

Detailed Description

Definition at line 19 of file test_commodity.py.

Member Function Documentation

◆ test_namespaces()

test_commodity.TestCommodityNamespace.test_namespaces ( self)

Definition at line 20 of file test_commodity.py.

20 def test_namespaces(self):
21 #print(self.table.__class__)
22 namespace_names = self.table.get_namespaces()
23 #print(namespace_names)
24 self.assertEqual(namespace_names, ['template', 'CURRENCY'])
25

◆ test_namespaces_list()

test_commodity.TestCommodityNamespace.test_namespaces_list ( self)

Definition at line 26 of file test_commodity.py.

26 def test_namespaces_list(self):
27 namespaces = self.table.get_namespaces_list()
28 namespace_names = [ns.get_name() for ns in namespaces]
29 self.assertEqual(namespace_names, ['template', 'CURRENCY'])
30

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