Example #1
0
 def test__check_fct_not_callable():
     with pytest.raises(ActionException):
         StatefullAction._check_fct(10)
Example #2
0
 def test__check_fct_not_good():
     with pytest.raises(ActionException):
         StatefullAction._check_fct(lambda: 10)
Example #3
0
 def test__check_fct_not_good_too():
     with pytest.raises(ActionException):
         StatefullAction._check_fct(lambda state, something_else: 10)
Example #4
0
 def test__check_fct():
     StatefullAction._check_fct(lambda state: 10)