message_ix_models.tests.util.test_scenarioinfo.TestScenarioInfo

class message_ix_models.tests.util.test_scenarioinfo.TestScenarioInfo[source]

Bases: object

__init__()

Methods

__init__()

info()

test_asdict(func, info)

Test backported asdict() works for ScenarioInfo.

test_deepcopy(info)

test_empty()

ScenarioInfo created from scratch.

test_from_scenario(test_context)

ScenarioInfo initialized from an existing Scenario.

test_from_url()

test_iter()

test_path(input, expected)

test_repr()

test_units(caplog)

Test both io_units() and units_for().

test_update(caplog)

test_url()

test_year_from_codes(caplog, codelist, y0, ...)

test_asdict(func, info) None[source]

Test backported asdict() works for ScenarioInfo.

test_empty()[source]

ScenarioInfo created from scratch.

test_from_scenario(test_context) None[source]

ScenarioInfo initialized from an existing Scenario.

test_units(caplog)[source]

Test both io_units() and units_for().