GnuCash c935c2f+
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 326 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 330 of file test_price_and_wrapping.py.

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

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