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