[Erp5-report] r27716 - /erp5/trunk/products/ERP5/tests/testPayroll.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 22 11:26:45 CEST 2009


Author: fabien
Date: Mon Jun 22 11:26:44 2009
New Revision: 27716

URL: http://svn.erp5.org?rev=27716&view=rev
Log:
change method name and improve docstring

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

Modified: erp5/trunk/products/ERP5/tests/testPayroll.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPayroll.py?rev=27716&r1=27715&r2=27716&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPayroll.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testPayroll.py [utf8] Mon Jun 22 11:26:44 2009
@@ -719,7 +719,8 @@
       else:
         self.fail("Unknown service for line %s" % paysheet_line.getTitle())
 
-  def stepCheckPaysheetLineAmountsAfterAddingAModelLine(self, sequence=None, **kw):
+  def stepCheckPaysheetLineAmountsAfterUpdateUsing2LinesWithSameResource(self,
+      sequence=None, **kw):
     paysheet = sequence.get('paysheet')
     paysheet_line_list = paysheet.contentValues(portal_type='Pay Sheet Line')
     for paysheet_line in paysheet_line_list:
@@ -3305,8 +3306,9 @@
     sequence_list.play(self)
 
   def test_updatePaysheetAfterModelModification(self):
-    '''generate a paysheet using a model, modify the model, and update the
-    paysheet. Check the paysheet values have been updated
+    '''generate a paysheet using a model, modify the model by adding a new
+    model line with the same resource as the first one and update the
+    paysheet. Check the paysheet values have been updated (new line created)
     '''
     sequence_list = SequenceList()
     sequence_string = '''
@@ -3335,9 +3337,9 @@
                PaysheetApplyTransformation
                Tic
                CheckPaysheetLineAreCreatedUsingWith3Lines
-               CheckPaysheetLineAmountsAfterAddingAModelLine
+               CheckPaysheetLineAmountsAfterUpdateUsing2LinesWithSameResource
                CheckUpdateAggregatedAmountListReturnNothing
-               CheckPaysheetLineAmountsAfterAddingAModelLine
+               CheckPaysheetLineAmountsAfterUpdateUsing2LinesWithSameResource
     '''
     sequence_list.addSequenceString(sequence_string)
     sequence_list.play(self)




More information about the Erp5-report mailing list