diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-23 03:28:21 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-23 03:28:21 (GMT) |
commit | fa1197aad8d56b43bdf57ec3ad3ef9b9216d1376 (patch) | |
tree | c5699d1a9c924d4cef47f4bfdc3285362bd73ca5 /tests | |
parent | 1b0624f034909d0b42e6e7da8ec414125ce35109 (diff) |
fix some tests, keep write_fsm a member function in the TutorialBundler since it uses self...
Diffstat (limited to 'tests')
-rw-r--r-- | tests/linear_creatortests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/linear_creatortests.py b/tests/linear_creatortests.py index 999f4d5..e3c30c1 100644 --- a/tests/linear_creatortests.py +++ b/tests/linear_creatortests.py @@ -35,11 +35,11 @@ class CreatorTests(unittest.TestCase): creator.action(CountAction()) creator.action(CountAction()) - creator.event(TriggerEventFilter("Not important")) + creator.event(TriggerEventFilter()) creator.action(CountAction()) - creator.event(TriggerEventFilter("Not good either...")) + creator.event(TriggerEventFilter()) fsm = creator.generate_fsm() @@ -50,13 +50,13 @@ class CreatorTests(unittest.TestCase): assert len(init_state.get_action_list()) == 2, "Creator did not insert all the actions" - assert init_state.get_event_filter_list()[0].get_next_state() == "State 1" , "expected next state to be 'State 1' but got %s" % init_state.get_event_filter_list()[0].get_next_state() + assert init_state.get_event_filter_list()[0][1] == "State 1" , "expected next state to be 'State 1' but got %s" % init_state.get_event_filter_list()[0][1] state1 = fsm.get_state_by_name("State 1") assert len(state1.get_action_list()) == 1, "Creator did not insert all the actions" - assert state1.get_event_filter_list()[0].get_next_state() == "State 2" + assert state1.get_event_filter_list()[0][1] == "State 2" # Make sure we have the final state and that it's empty state2 = fsm.get_state_by_name("State2") |