def test__fetch_selection_config_validData_fetchesValidVariables(): sel_config = {"method": "roulette", "agents_to_save": 1.0} config = Config() config._fetch_selection_config(sel_config) assert config.selection_method == "roulette" and config.agents_to_save == 1.0
def test__fetch_selection_config_emptyDict_returnsDefaultSettings(): sel_config = {} config = Config() config._fetch_selection_config(sel_config) assert config.selection_method == "roulette" and config.agents_to_save == 0.0