[Erp5-report] r13251 - /erp5/trunk/products/ERP5/tests/testAlarm.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 7 11:50:31 CET 2007
Author: jerome
Date: Wed Mar 7 11:50:29 2007
New Revision: 13251
URL: http://svn.erp5.org?rev=13251&view=rev
Log:
test newActiveProcess / getLastActiveProcess
Modified:
erp5/trunk/products/ERP5/tests/testAlarm.py
Modified: erp5/trunk/products/ERP5/tests/testAlarm.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAlarm.py?rev=13251&r1=13250&r2=13251&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAlarm.py (original)
+++ erp5/trunk/products/ERP5/tests/testAlarm.py Wed Mar 7 11:50:29 2007
@@ -408,6 +408,20 @@
alarm.setNextAlarmDate(current_date=date)
self.assertEquals(alarm.getAlarmDate(),date)
+ def test_14_NewActiveProcess(self, quiet=0, run=run_all_test):
+ if not run: return
+ if not quiet:
+ message = 'Test New Active Process'
+ ZopeTestCase._print('\n%s ' % message)
+ LOG('Testing... ',0,message)
+ alarm = self.newAlarm()
+ active_process = alarm.newActiveProcess()
+ self.assertEquals('Active Process', active_process.getPortalType())
+ self.assertEquals(alarm, active_process.getCausalityValue())
+ get_transaction().commit()
+ self.tic()
+ self.assertEquals(active_process, alarm.getLastActiveProcess())
+
if __name__ == '__main__':
framework()
else:
More information about the Erp5-report
mailing list