示例#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)