[Erp5-report] r22524 - /erp5/trunk/products/ERP5/tests/testCRM.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 17 15:26:36 CEST 2008
Author: nicolas
Date: Thu Jul 17 15:26:35 2008
New Revision: 22524
URL: http://svn.erp5.org?rev=22524&view=rev
Log:
Test forward email with attachment
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=22524&r1=22523&r2=22524&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testCRM.py (original)
+++ erp5/trunk/products/ERP5/tests/testCRM.py Thu Jul 17 15:26:35 2008
@@ -485,6 +485,22 @@
self.assertEqual(document.getSourceValue().getTitle(), 'Sender')
self.assertEqual(document.getDestinationValue().getTitle(), 'Me')
+ def test_forwarder_mail_with_attachment(self):
+ """
+ Make sure that if ingested email is forwarded one, the sender of
+ original mail should be the sender of event and the sender of
+ forwarded mail should be the recipient of event.
+ """
+ document = self._ingestMail(filename='forwarded_attached')
+
+ get_transaction().commit()
+ self.tic()
+
+ self.assertEqual(document.getContentInformation().get('From'), 'Me <me at erp5.org>')
+ self.assertEqual(document.getContentInformation().get('To'), 'crm at erp5.org')
+ self.assertEqual(document.getSourceValue().getTitle(), 'Sender')
+ self.assertEqual(document.getDestinationValue().getTitle(), 'Me')
+
def test_encoding(self):
document = self._ingestMail(filename='encoded')
More information about the Erp5-report
mailing list