[Erp5-report] r20856 - /erp5/trunk/products/ERP5/tests/testNotificationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Apr 30 15:19:02 CEST 2008
Author: yusei
Date: Wed Apr 30 15:18:59 2008
New Revision: 20856
URL: http://svn.erp5.org?rev=20856&view=rev
Log:
Specify portal type explicitly.
Modified:
erp5/trunk/products/ERP5/tests/testNotificationTool.py
Modified: erp5/trunk/products/ERP5/tests/testNotificationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testNotificationTool.py?rev=20856&r1=20855&r2=20856&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testNotificationTool.py (original)
+++ erp5/trunk/products/ERP5/tests/testNotificationTool.py Wed Apr 30 15:18:59 2008
@@ -441,7 +441,7 @@
"""
Check that notification is send when recipient is a Person
"""
- person = self.portal.portal_catalog(reference='userA')[0]
+ person = self.portal.portal_catalog(reference='userA', portal_type='Person')[0]
self.portal.portal_notifications.sendMessage(
recipient=person.getObject(), subject='Subject', message='Message')
last_message = self.portal.MailHost._last_message
More information about the Erp5-report
mailing list