GnuCash fec5643+
Loading...
Searching...
No Matches
Public Member Functions
test_price_and_wrapping.TestCommodityNamespaceDS Class Reference
Inheritance diagram for test_price_and_wrapping.TestCommodityNamespaceDS:

Public Member Functions

 test_get_namespace_ds (self)
 

Detailed Description

Verify GncCommodity.get_namespace_ds() returns
GncCommodityNamespace.

Definition at line 327 of file test_price_and_wrapping.py.

Member Function Documentation

◆ test_get_namespace_ds()

test_price_and_wrapping.TestCommodityNamespaceDS.test_get_namespace_ds (   self)

Definition at line 331 of file test_price_and_wrapping.py.

331 def test_get_namespace_ds(self):
332 ses = Session()
333 book = ses.get_book()
334 table = book.get_table()
335 usd = table.lookup("CURRENCY", "USD")
336 self.assertIsNotNone(usd)
337 ns = usd.get_namespace_ds()
338 self.assertIsInstance(ns, GncCommodityNamespace)
339 ses.end()
340
341
342# ---------------------------------------------------------------------------
343# Test: SWIG typemap compatibility (wrapper → instance unwrap)
344# ---------------------------------------------------------------------------

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