[Erp5-report] r25762 - in /erp5/trunk/products/ERP5/tests: ./ test_data/crm_emails/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Mar 2 08:51:40 CET 2009
Author: yusei
Date: Mon Mar 2 08:51:39 2009
New Revision: 25762
URL: http://svn.erp5.org?rev=25762&view=rev
Log:
Check if From header has multiple addresses and some of them are not written like <user at example.com>.
Modified:
erp5/trunk/products/ERP5/tests/testCRM.py
erp5/trunk/products/ERP5/tests/test_data/crm_emails/simple
Modified: erp5/trunk/products/ERP5/tests/testCRM.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testCRM.py?rev=25762&r1=25761&r2=25762&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testCRM.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testCRM.py [utf8] Mon Mar 2 08:51:39 2009
@@ -342,12 +342,17 @@
title='Sender',
subordination_value=customer_organisation,
default_email_text='sender at customer.com')
- # also create the recipient
+ # also create the recipients
if 'me' not in portal.person_module.contentIds():
portal.person_module.newContent(
id='me',
title='Me',
default_email_text='me at erp5.org')
+ if 'he' not in portal.person_module.contentIds():
+ portal.person_module.newContent(
+ id='he',
+ title='He',
+ default_email_text='he at erp5.org')
# make sure customers are available to catalog
get_transaction().commit()
@@ -417,7 +422,10 @@
event = self._ingestMail('simple')
get_transaction().commit()
self.tic()
- self.assertEquals('person_module/me', event.getDestination())
+ destination_list = event.getDestinationList()
+ destination_list.sort()
+ self.assertEquals(['person_module/he', 'person_module/me'],
+ destination_list)
def test_follow_up(self):
# follow up is found automatically, based on the content of the mail, and
Modified: erp5/trunk/products/ERP5/tests/test_data/crm_emails/simple
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/test_data/crm_emails/simple?rev=25762&r1=25761&r2=25762&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/test_data/crm_emails/simple [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/test_data/crm_emails/simple [utf8] Mon Mar 2 08:51:39 2009
@@ -5,7 +5,7 @@
Date: Sat, 20 Oct 2007 15:10:37 +0200
From: Sender <sender at customer.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20070728)
-To: Me <me at erp5.org>
+To: Me <me at erp5.org>, he at erp5.org,she at erp5.org
Subject: Simple Mail Test
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
More information about the Erp5-report
mailing list