[Erp5-report] r38334 aurel - /erp5/trunk/products/ERP5/tests/testCRM.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 14 10:47:25 CEST 2010


Author: aurel
Date: Tue Sep 14 10:47:22 2010
New Revision: 38334

URL: http://svn.erp5.org?rev=38334&view=rev
Log:
test that title and content are well copied when creating a clone event

Modified:
    erp5/trunk/products/ERP5/tests/testCRM.py

Modified: erp5/trunk/products/ERP5/tests/testCRM.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testCRM.py?rev=38334&r1=38333&r2=38334&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testCRM.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testCRM.py [utf8] Tue Sep 14 10:47:22 2010
@@ -1315,12 +1315,19 @@ class TestCRMMailSend(BaseTestCRM):
       workflow add a test for clone
     """
     portal_type = "Mail Message"
-    event = self.portal.event_module.newContent(portal_type=portal_type)
+    title = "Title of the event"
+    content = "This is the content of the event"
+    event = self.portal.event_module.newContent(portal_type=portal_type,
+                                                title=title,
+                                                text_content=content,)
     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(), "")
+    self.assertEquals(new_event.getTitle(), title)
+    self.assertEquals(new_event.getTextContent(), content)
 
 
 def test_suite():




More information about the Erp5-report mailing list