예제 #1
0
파일: test_actor.py 프로젝트: eneabio/hsm
 def test_send_data(self):
     obj = ObjTopState()
     obj.send_print("sample")
     obj.send_fini()
     pass
     runtime_actor.dispatch_all_msg()
예제 #2
0
파일: test_actor.py 프로젝트: eneabio/hsm
 def test_msg_send(self):
     obj = ObjTopState()
     obj.send_fatal_error()
     runtime_actor.dispatch_all_msg()
     st = obj.get_state()
     self.assertTrue(ObjErrorState == st)
예제 #3
0
파일: test_actor.py 프로젝트: eneabio/hsm
 def _test_fini(self):
     obj = ObjTopState()
     obj.send_fini()
     runtime_actor.dispatch_all_msg()
     st = obj.get_state()
     print st
예제 #4
0
파일: test_actor.py 프로젝트: eneabio/hsm
 def test_ancestor_transition(self):
     obj = ObjTopState()
     obj.transition(ObjTopState)
     runtime_actor.dispatch_all_msg()
     st = obj.get_state()
     self.assertTrue(ObjLeftChildState == st)