Example #1
0
 def test_send_data(self):
     obj = ObjTopState()
     obj.send_print("sample")
     obj.send_fini()
     pass
     runtime_actor.dispatch_all_msg()
Example #2
0
 def test_msg_send(self):
     obj = ObjTopState()
     obj.send_fatal_error()
     runtime_actor.dispatch_all_msg()
     st = obj.get_state()
     self.assertTrue(ObjErrorState == st)
Example #3
0
 def _test_fini(self):
     obj = ObjTopState()
     obj.send_fini()
     runtime_actor.dispatch_all_msg()
     st = obj.get_state()
     print st
Example #4
0
 def test_ancestor_transition(self):
     obj = ObjTopState()
     obj.transition(ObjTopState)
     runtime_actor.dispatch_all_msg()
     st = obj.get_state()
     self.assertTrue(ObjLeftChildState == st)