Commit d0b6afac authored by Julien Muchembled's avatar Julien Muchembled

Update test_18_alarm_activities_execution_order wrt [34777]

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34828 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 876d500b
...@@ -592,12 +592,13 @@ class TestAlarm(ERP5TypeTestCase): ...@@ -592,12 +592,13 @@ class TestAlarm(ERP5TypeTestCase):
transaction.commit() transaction.commit()
messages_list = self.getActivityTool().getMessageList() messages_list = self.getActivityTool().getMessageList()
self.assertEquals(2, len(messages_list)) self.assertEquals(2, len(messages_list))
expected_tag = alarm.getRelativeUrl() + '_0'
# check tags after activeSense # check tags after activeSense
for m in messages_list: for m in messages_list:
if m.method_id == 'notify': if m.method_id == 'notify':
self.assertEquals(m.activity_kw.get('after_tag'), '0') self.assertEqual(expected_tag, m.activity_kw.get('after_tag'))
elif m.method_id == sense_method_id: elif m.method_id == sense_method_id:
self.assertEquals(m.activity_kw.get('tag'), '0') self.assertEqual(expected_tag, m.activity_kw.get('tag'))
else: else:
raise AssertionError, m.method_id raise AssertionError, m.method_id
# execute alarm sense script and check tags # execute alarm sense script and check tags
...@@ -606,9 +607,9 @@ class TestAlarm(ERP5TypeTestCase): ...@@ -606,9 +607,9 @@ class TestAlarm(ERP5TypeTestCase):
messages_list = self.getActivityTool().getMessageList() messages_list = self.getActivityTool().getMessageList()
for m in messages_list: for m in messages_list:
if m.method_id == 'notify': if m.method_id == 'notify':
self.assertEquals(m.activity_kw.get('after_tag'), '0') self.assertEqual(expected_tag, m.activity_kw.get('after_tag'))
elif m.method_id == 'immediateReindexObject': elif m.method_id == 'immediateReindexObject':
self.assertEquals(m.activity_kw.get('tag'), '0') self.assertEqual(expected_tag, m.activity_kw.get('tag'))
else: else:
raise AssertionError, m.method_id raise AssertionError, m.method_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment