コード例 #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)