Exemple #1
0
 def test_no_init_ctor(self):
     fsm = FSM([])
     idle = State("I")
     str(idle)
     fsm.add_state(idle)
     self.assertWarns(RuntimeWarning, "No next state",
                      txtorcon.spaghetti.__file__, fsm.process, "")
Exemple #2
0
 def test_no_init_ctor(self):
     fsm = FSM([])
     idle = State("I")
     str(idle)
     fsm.add_state(idle)
     self.assertWarns(RuntimeWarning, "No next state",
                      txtorcon.spaghetti.__file__, fsm.process, "")
Exemple #3
0
 def test_two_states(self):
     fsm = FSM([])
     idle = State("I")
     notidle = State("N")
     fsm.add_state(idle)
     fsm.add_state(notidle)
Exemple #4
0
 def test_two_states(self):
     fsm = FSM([])
     idle = State("I")
     notidle = State("N")
     fsm.add_state(idle)
     fsm.add_state(notidle)