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