Commit 1bdd03fe authored by Tatuya Kamada's avatar Tatuya Kamada

Confirm r31623 fixing. Test notification message when re-assigning.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31625 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afa0f6e8
......@@ -292,6 +292,19 @@ class TestBug(ERP5TypeTestCase):
self.failUnless( bug_message.getStartDate() is not None)
#self.assertEquals(bug_message.getSourceValue().getTitle(), 'dummy')
def stepCheckBugMessageNotificationReAssign(self, sequence=None, sequence_list=None, **kw):
"""
Check the bug message when re-assign
"""
last_message = self.portal.MailHost._last_message
self.assertNotEquals((), last_message)
mfrom, mto, messageText = last_message
from email.Parser import Parser
p = Parser()
m = p.parsestr(messageText)
self.assertTrue('Re-assign!' in m.get_payload()[0].get_payload(decode=True))
def stepCheckBugInit(self, sequence=None, sequence_list=None, **kw):
"""
Create a dummy bug
......@@ -339,7 +352,7 @@ class TestBug(ERP5TypeTestCase):
Re Assign the bug.
"""
bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 're_assign_action', send_event=1)
self.workflow_tool.doActionFor(bug, 're_assign_action', send_event=1, comment='Re-assign!')
self.assertEquals(bug.getSimulationState(), 'ready')
def stepCloseBug(self, sequence=None, sequence_list=None, **kw):
......@@ -437,6 +450,7 @@ class TestBug(ERP5TypeTestCase):
, 'stepReAssignBug'
, 'stepTic'
, 'stepCheckBugNotification'
, 'stepCheckBugMessageNotificationReAssign'
, 'stepResolveBug'
, 'stepTic'
, 'stepCheckBugNotification'
......
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