Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/core.py
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-10-04 21:36:50 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-10-04 21:36:50 (GMT)
commit2c29c0111ee94d69d038c22294dfdd1549fdbed3 (patch)
tree67ab3f9cf9777212dafacc628e8263100dc3ac20 /tutorius/core.py
parentc5a4e544e1abf11ffa8378a4a03df92e40137cff (diff)
LP 439980 : Adding tests for the is_identical function in the Core, on the FSM and the State
Diffstat (limited to 'tutorius/core.py')
-rw-r--r--tutorius/core.py27
1 files changed, 12 insertions, 15 deletions
diff --git a/tutorius/core.py b/tutorius/core.py
index ff592ad..d034c30 100644
--- a/tutorius/core.py
+++ b/tutorius/core.py
@@ -90,16 +90,16 @@ class Tutorial (object):
self.state_machine.set_state(name)
- # Currently unused -- equivalent function is in each state
- def _eventfilter_state_done(self, eventfilter):
- """
- Callback handler for eventfilter to notify
- when we must go to the next state.
- """
- #XXX Tests should be run here normally
-
- #Swith to the next state pointed by the eventfilter
- self.set_state(eventfilter.get_next_state())
+## # Currently unused -- equivalent function is in each state
+## def _eventfilter_state_done(self, eventfilter):
+## """
+## Callback handler for eventfilter to notify
+## when we must go to the next state.
+## """
+## #XXX Tests should be run here normally
+##
+## #Swith to the next state pointed by the eventfilter
+## self.set_state(eventfilter.get_next_state())
def _prepare_activity(self):
"""
@@ -141,9 +141,6 @@ class State(object):
self._actions = action_list or []
- # Unused for now
- #self.tests = []
-
self._event_filters = event_filter_list or []
self.tutorial = tutorial
@@ -402,7 +399,7 @@ class FiniteStateMachine(State):
# Flag the FSM level setup as done
self._fsm_setup_done = True
# Execute all the FSM level actions
- for action in self.actions:
+ for action in self._actions:
action.do()
# Then, we need to run the setup of the current state
@@ -467,7 +464,7 @@ class FiniteStateMachine(State):
# Flag the FSM teardown as not needed anymore
self._fsm_teardown_done = True
# Undo all the FSM level actions here
- for action in self.actions:
+ for action in self._actions:
action.undo()
# TODO : It might be nice to have a start() and stop() method for the