From d0b6afaca2fe2a67ad6cd69c523176c22f20ec9c Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Wed, 28 Apr 2010 11:08:36 +0000 Subject: [PATCH] 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 --- product/ERP5/tests/testAlarm.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/product/ERP5/tests/testAlarm.py b/product/ERP5/tests/testAlarm.py index fdc270e8c3..dc0f16d0be 100644 --- a/product/ERP5/tests/testAlarm.py +++ b/product/ERP5/tests/testAlarm.py @@ -592,12 +592,13 @@ class TestAlarm(ERP5TypeTestCase): transaction.commit() messages_list = self.getActivityTool().getMessageList() self.assertEquals(2, len(messages_list)) + expected_tag = alarm.getRelativeUrl() + '_0' # check tags after activeSense for m in messages_list: 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: - self.assertEquals(m.activity_kw.get('tag'), '0') + self.assertEqual(expected_tag, m.activity_kw.get('tag')) else: raise AssertionError, m.method_id # execute alarm sense script and check tags @@ -606,9 +607,9 @@ class TestAlarm(ERP5TypeTestCase): messages_list = self.getActivityTool().getMessageList() for m in messages_list: 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': - self.assertEquals(m.activity_kw.get('tag'), '0') + self.assertEqual(expected_tag, m.activity_kw.get('tag')) else: raise AssertionError, m.method_id -- 2.30.9