Commit 79e0dca5 authored by Sebastien Robin's avatar Sebastien Robin

check predicate_value_list and DomainBaseCategoryList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@966 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce3ceca4
...@@ -494,11 +494,16 @@ class TestOrder(ERP5TypeTestCase): ...@@ -494,11 +494,16 @@ class TestOrder(ERP5TypeTestCase):
for cell in cell_list: for cell in cell_list:
LOG('CheckConfirmSalesOrder cell.asXML',0,cell.asXML()) LOG('CheckConfirmSalesOrder cell.asXML',0,cell.asXML())
self.assertEquals(cell.getTargetQuantity(),self.quantity) self.assertEquals(cell.getTargetQuantity(),self.quantity)
self.failIfDifferentSet(cell.getDomainBaseCategoryList(),self.variation_base_category_list1)
# Check membership criterion # Check membership criterion
membership_criterion_category_list = map(lambda x: tuple(x.getMembershipCriterionCategoryList()),cell_list) membership_criterion_category_list_list = map(lambda x: tuple(x.getMembershipCriterionCategoryList()),cell_list)
LOG('stepCheckActivateRequirementList, color_and_size_list',0,color_and_size_list) LOG('stepCheckActivateRequirementList, color_and_size_list',0,color_and_size_list)
LOG('stepCheckActivateRequirementList, membership_criterion_category_list',0,membership_criterion_category_list) LOG('stepCheckActivateRequirementList, membership_criterion_category_list_list',0,membership_criterion_category_list_list)
self.failIfDifferentSet(color_and_size_list,membership_criterion_category_list) self.failIfDifferentSet(color_and_size_list,membership_criterion_category_list_list)
predicate_value_list_list = map(lambda x: tuple(x.getPredicateValueList()),cell_list)
LOG('stepCheckActivateRequirementList, color_and_size_list',0,color_and_size_list)
LOG('stepCheckActivateRequirementList, predicate_value_list_list',0,predicate_value_list_list)
self.failIfDifferentSet(color_and_size_list,predicate_value_list_list)
def stepCheckPackingListDiverged(self, sequence=None, sequence_list=None, **kw): def stepCheckPackingListDiverged(self, sequence=None, sequence_list=None, **kw):
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
......
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