test_core

s/e.

class iamax.tests.test_core.CasesKwargs

Extensible class that aggregates instantiations arguments to be used by TestDSpace, TestMSystem, BaseTestMSystems and its descendants.

class iamax.tests.test_core.TestDSpace

Unit-test counterpart of DSpace.

classmethod setup_class(cls)

s/e.

classmethod teardown_class(cls)

s/e.

test_serialization_deactivation(self)

s/e.

test_ineq_omission_uneffectiveness(self)

s/e.

test_localizations_dims_members(self)

s/e.

test_core_arrays_mdata_bkeys(self, _ksλ: Callable = {*'kvh'}.issubset)

s/e.

test_core_arrays_mdata_okeys(self, _ksb: set[str] = {*'kvh'}, _kso: set[str] = {*'Kf𐌅spχδθαatϙøη'})

s/e.

test_sheets_names_legislator_raiser(self, kw: str = f'_{rd.randint(0, 10)}_{rd.choice([*snames])}')

s/e.

test_sheets_names_legislator(self, ns: dict[str, str], ls: list[str])

s/e.

test_sheets_names_and_keys_pairings(self, sns: list[tuple[str, ...]])

s/e.

test_raw_nodes_modes_invariance(self)

s/e.

test_datafile_unlocking(self)

s/e.

test_sheet_ids_getter_raiser(self)

s/e.

test_blueprint_missed_coord_raiser(self, item: tuple[str, str])

s/e.

Example
>>> d = TestDSpace()
>>> d.setup_class()
>>> d.test_blueprint_missed_coord_raiser(('year', '0'))
test_blueprint_derived_properties(self)

s/e.

test_ndarray_reader_raiser(self)

s/e.

test_copy_example_raiser(self)

s/e.

class iamax.tests.test_core.TestMSystem

Unit-test counterpart of MSystem.

classmethod setup_class(cls)

s/e.

classmethod teardown_class(cls)

s/e.

test_class_default_states(self)

s/e.

test_linearization_falseness(self)

s/e.

test_losses_exponent(self)

s/e.

test_losses_factor(self)

s/e.

test_system_constraints_aggregation(self)

s/e.

test_system_unaveraged_losses(self)

s/e.

test_vectorization_uneffectiveness(self)

s/e.

test_hessian_autodiff_uneffectiveness(self)

s/e.

test_jacobian_autodiff_uneffectiveness(self)

s/e.

test_crcomponents_uneffectiveness(self)

s/e.

test_objective_jitness(self)

s/e.

test_derivatives_jitness(self)

s/e.

test_system_unrestrictness(self)

s/e.

test_contrib_taxes_non_relativity(self)

s/e.

test_other_costs_non_relativity(self)

s/e.

test_trade_margins_non_relativity(self)

s/e.

test_market_rents_non_relativity(self)

s/e.

test_sales_taxes_non_relativity(self)

s/e.

test_specific_margins_non_relativity(self)

s/e.

test_sales_taxes_totality(self)

s/e.

test_excises_totality(self)

s/e.

test_trade_margins_nontotality(self)

s/e.

test_reflected_rights_ineffectiveness(self)

s/e.

test_markets_rents_exogeneity(self)

s/e.

test_fancy_connecter(self, s: tuple[int], i: tuple[Ellipsis|tuple[int]], d: bool, w: bool, v: bool, o: bool, m: bool, j: tuple[Ellipsis|tuple[int]])

s/e.

test_fancy_moveupper(self, k: int, i: tuple[Ellipsis|tuple[int]], j: tuple[Ellipsis|tuple[int]], d: bool)

s/e.

test_fancy_reshaper(self, i: tuple[tuple[int]], v: int, y: int, x: int, d: bool, o: tuple[tuple[int|tuple[int|tuple]]])

s/e.

test_libobj_paths_flattener(self, c: type, oi: str, o: list[tuple[str, str]])

s/e.

test_œƨvars_exhaustivity(self)

s/e.

Example
>>> s = TestMSystem()
>>> s.setup_class()
>>> s.test_œƨvars_exhaustivity()
>>> s.teardown_class()
test_constraint_nth_order_efficienciation_reliability(self, agg: bool, bcise: int = 5, _cdir: str = cf.CACHEDIR)

s/e.

Example
>>> s = TestMSystem()
>>> s.setup_class()
>>> s.test_constraint_nth_order_efficienciation_reliability(False)
>>> s.test_constraint_nth_order_efficienciation_reliability(True)
>>> s.teardown_class()
test_xmaps_complementarity(self)

s/e.

class iamax.tests.test_core.BaseTestMSystems

Base functional-test counterpart of MSystem.

classmethod setup_class(cls)

s/e.

classmethod teardown_class(cls)

s/e.

test_calibration_unks_detection(self)

s/e.

Example
>>> s = [TestCHNSystem, TestDZASystem, TestFRASystem][1]()
>>> s.setup_class()
>>> s.test_calibration_unks_detection()
>>> s.teardown_class()
test_calibrate_raiser(self)

s/e.

test_calibration(self, _eqλ: Callable = np.allclose, _aλ: Callable = lambda a, _a0=np.array([1]): _a0 if a is None else a)

s/e.

test_recursion_unks_detection(self)

s/e.

test_recursion(self, _eqλ: Callable = np.allclose)

s/e.

Example
>>> s = [TestCHNSystem, TestDZASystem, TestFRASystem][1]()
>>> s.setup_class()
>>> s.test_calibration()
>>> s.test_recursion_unks_detection()
>>> s.test_recursion()
>>> s.test_compilation_onceness()
>>> s.teardown_class()
test_compilation_onceness(self, _eqλ: Callable = np.allclose, _gλ: Callable = lambda i: i._unks['_ts'][-1])

s/e.

Example
>>> s = [TestCHNSystem, TestDZASystem, TestFRASystem][0]()
>>> s.setup_class()
>>> s.test_compilation_onceness()
>>> s.teardown_class()
class iamax.tests.test_core.MetaTestMSystems
Inheritance diagram of iamax.tests.test_core.MetaTestMSystems

MSystem’s functional-test metaclass.

class iamax.tests.test_core.TestCHNSystem
Inheritance diagram of iamax.tests.test_core.TestCHNSystem

KLEM-BRICS-archetyped functional-test of MSystem.

class iamax.tests.test_core.TestFRASystem
Inheritance diagram of iamax.tests.test_core.TestFRASystem

KLEM-FRA-archetyped functional-test of MSystem.

class iamax.tests.test_core.TestDZASystem
Inheritance diagram of iamax.tests.test_core.TestDZASystem

KLEM-DZA-archetyped functional-test of MSystem.