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