Commit d11d9c6d authored by Rafael Monnerat's avatar Rafael Monnerat

Added test for clone event.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28991 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69fe8d31
......@@ -1234,6 +1234,19 @@ class TestCRMMailSend(ERP5TypeTestCase):
part = i
self.assertEqual(part.get_payload(decode=True), str(document_gif.getData()))
def test_cloneEvent(self):
"""
All events uses after script and interaciton
workflow add a test for clone
"""
portal_type = "Mail Message"
event = self.portal.event_module.newContent(portal_type=portal_type)
event.setData("This is the context of the event...")
self.stepTic()
new_event = event.Base_createCloneDocument(batch_mode=1)
self.failIf(new_event.hasFile())
self.assertEquals(new_event.getData(), "")
def test_suite():
suite = unittest.TestSuite()
......
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