Commit 5892f30f authored by Jérome Perrin's avatar Jérome Perrin

configurator_standard: trivial simplification in test

* Use assertIn
* Do not introduce useless variables
parent fec9dc50
...@@ -912,27 +912,13 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin): ...@@ -912,27 +912,13 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
""" """
Configurator can configure some PropertySheets. Configurator can configure some PropertySheets.
""" """
portal = self.portal portal_types = self.portal.portal_types
purchase_order = portal.portal_types['Purchase Order'] self.assertIn('TradeOrderLine', portal_types['Sale Packing List Line'].getTypePropertySheetList())
purchase_order_line = portal.portal_types['Purchase Order Line'] self.assertIn('TradeOrder', portal_types['Purchase Order'].getTypePropertySheetList())
sale_order = portal.portal_types['Sale Order'] self.assertIn('TradeOrderLine', portal_types['Purchase Order Line'].getTypePropertySheetList())
sale_order_line = portal.portal_types['Sale Order Line'] self.assertIn('TradeOrder', portal_types['Sale Order'].getTypePropertySheetList())
inventory = portal.portal_types['Inventory'] self.assertIn('TradeOrderLine', portal_types['Sale Order Line'].getTypePropertySheetList())
sale_packing_list = portal.portal_types['Sale Packing List'] self.assertIn('InventoryConstraint', portal_types['Inventory'].getTypePropertySheetList())
sale_packing_list_line = portal.portal_types['Sale Packing List Line']
self.assertEqual(True,
'TradeOrderLine' in sale_packing_list_line.getTypePropertySheetList())
self.assertEqual(True,
'TradeOrder' in purchase_order.getTypePropertySheetList())
self.assertEqual(True,
'TradeOrderLine' in purchase_order_line.getTypePropertySheetList())
self.assertEqual(True,
'TradeOrder' in sale_order.getTypePropertySheetList())
self.assertEqual(True,
'TradeOrderLine' in sale_order_line.getTypePropertySheetList())
self.assertEqual(True,
'InventoryConstraint' in inventory.getTypePropertySheetList())
def stepCheckSaleOrderSimulation(self, sequence=None, sequence_list=None, **kw): def stepCheckSaleOrderSimulation(self, sequence=None, sequence_list=None, **kw):
""" """
......
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