Commit a87ca8cd authored by Sebastien Robin's avatar Sebastien Robin

change the import of testOrder


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b79f5c96
......@@ -53,7 +53,7 @@ import time
import os
from Products.ERP5Type import product_path
from Products.CMFCore.utils import getToolByName
from Products.ERP5.tests.testOrder import TestOrderMixin
from testOrder import TestOrderMixin
class Test(TestOrderMixin,ERP5TypeTestCase):
"""
......@@ -266,11 +266,17 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
"""
applied_rule = sequence.get('applied_rule')
packing_list_line = sequence.get('packing_list_line')
packing_list = sequence.get('packing_list')
LOG('CheckNewPackingList, self.datetime+15',0,self.datetime+15)
LOG('CheckNewPackingList, packing_list.getStartDate',0,packing_list.getStartDate())
self.assertEquals(packing_list_line.getQuantity(),0)
simulation_line_list = applied_rule.objectValues()
self.assertEquals(len(simulation_line_list),1)
for simulation_line in simulation_line_list:
self.assertNotEquals(simulation_line.getDeliveryValue(),None)
delivery_value = simulation_line.getDeliveryValue()
new_packing_list = delivery_value.getParent()
self.assertNotEquals(new_packing_list.getUid(),packing_list.getUid())
def stepCommit(self, sequence=None, sequence_list=None, **kw):
"""
......@@ -407,6 +413,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
Tic \
CheckPackingListIsNotDivergent \
'
#CheckNewPackingListAfterStartDateAdopt \
# XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment