|
GnuCash fec5643+
|
Public Member Functions | |
| test_values_match_c_enum (self) | |
| test_set_source_accepts_enum (self) | |
PriceSource must cover the C PRICE_SOURCE_* enum exactly, so it can't drift if a value is added, removed, or renumbered on the C side. Member names are a Python-side choice (e.g. FINANCE_QUOTE spells out FQ), so the check is on the set of values, which come straight from the C enum.
Definition at line 460 of file test_price_and_wrapping.py.
| test_price_and_wrapping.TestPriceSourceEnum.test_set_source_accepts_enum | ( | self | ) |
Definition at line 475 of file test_price_and_wrapping.py.
| test_price_and_wrapping.TestPriceSourceEnum.test_values_match_c_enum | ( | self | ) |
Definition at line 466 of file test_price_and_wrapping.py.