def test__check_fct_not_callable(): with pytest.raises(ActionException): StatefullAction._check_fct(10)
def test__check_fct_not_good(): with pytest.raises(ActionException): StatefullAction._check_fct(lambda: 10)
def test__check_fct_not_good_too(): with pytest.raises(ActionException): StatefullAction._check_fct(lambda state, something_else: 10)
def test__check_fct(): StatefullAction._check_fct(lambda state: 10)