Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-11-25 18:49:32 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-11-25 18:49:32 (GMT)
commitebb94ef8194ec1e9d22b979e2f5a64a2b182102f (patch)
treea3f8439d2043a347df4022fb1a8bb58e51831403 /tests
parente7abfee767ef1f9b6efb6e6145da044151dd30e3 (diff)
LP 448319 : Cleaning up code a bit to make the FSM structure more obvious, Adding bubblemessage with image from Dave
Diffstat (limited to 'tests')
-rw-r--r--tests/enginetests.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/enginetests.py b/tests/enginetests.py
index ca86c9f..7fddd15 100644
--- a/tests/enginetests.py
+++ b/tests/enginetests.py
@@ -35,7 +35,12 @@ from sugar.tutorius.actions import Action
from sugar.tutorius.filters import EventFilter
from actiontests import CountAction
+
class MockProbeMgrMultiAddons(object):
+ """
+ Mock probe manager that supports installing more than one action
+ at the time.
+ """
def __init__(self):
self.action_dict = {}
self.event_dict = {}
@@ -172,7 +177,7 @@ class TestRunnerStates(unittest.TestCase):
self.pM._action_installed_cb('action1')
- assert self.runner._runner_state == engine.RUNNER_STATE_STOPPED
+ assert self.runner._runner_state == engine.RUNNER_STATE_IDLE
def test_stop_in_events(self):
self.runner.start()
@@ -185,7 +190,7 @@ class TestRunnerStates(unittest.TestCase):
assert self.runner._runner_state == engine.RUNNER_STATE_SETUP_EVENTS, "Tutorial should not be stopped until all events have been confirmed"
self.pM.event_sub_cB('event1')
- assert self.runner._runner_state == engine.RUNNER_STATE_STOPPED, "Tutorial should have been stopped right after the last event was confirmed"
+ assert self.runner._runner_state == engine.RUNNER_STATE_IDLE, "Tutorial should have been stopped right after the last event was confirmed"
class TestInstallationStates(unittest.TestCase):
def setUp(self):