From 13cdbce4b7607192110aea8bf934868d27527a87 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 21 Jun 2011 14:03:14 +0200 Subject: [PATCH] TradeModelPath no longer has overridden category accessor. --- product/ERP5/tests/testBPMCore.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/product/ERP5/tests/testBPMCore.py b/product/ERP5/tests/testBPMCore.py index 03404fa9b4..9a8364bbf8 100644 --- a/product/ERP5/tests/testBPMCore.py +++ b/product/ERP5/tests/testBPMCore.py @@ -409,12 +409,8 @@ class TestBPMImplementation(TestBPMDummyDeliveryMovementMixin): context_movement.setSourceValue(source_node) context_movement.setSourceSectionValue(source_section_node) self.assertEquals(None, business_path.getSourceValue()) - self.assertEquals([source_node], - business_path.getSourceValueList(context=context_movement)) self.assertEquals([source_node.getRelativeUrl()], - business_path.getSourceList(context=context_movement)) - self.assertEquals(source_node.getRelativeUrl(), - business_path.getSource(context=context_movement, default='something')) + business_path.getArrowCategoryDict(context=context_movement)['source']) def test_BusinessPathDynamicCategoryAccessProviderBusinessLinkPrecedence(self): movement_node = self.portal.organisation_module.newContent( @@ -428,10 +424,8 @@ class TestBPMImplementation(TestBPMDummyDeliveryMovementMixin): context_movement = self.createMovement() context_movement.setSourceValue(movement_node) self.assertEquals(path_node, business_path.getSourceValue()) - self.assertEquals(path_node, - business_path.getSourceValue(context=context_movement)) - self.assertEquals([path_node], - business_path.getSourceValueList(context=context_movement)) + self.assertEquals([path_node.getRelativeUrl()], + business_path.getArrowCategoryDict(context=context_movement)['source']) def test_BusinessPathDynamicCategoryAccessProviderEmptyMovement(self): business_path = self.createTradeModelPath() @@ -439,12 +433,7 @@ class TestBPMImplementation(TestBPMDummyDeliveryMovementMixin): context_movement = self.createMovement() self.assertEquals(None, business_path.getSourceValue()) - self.assertEquals(None, - business_path.getSourceValue(context=context_movement)) - self.assertEquals(None, - business_path.getSource(context=context_movement)) - self.assertEquals('something', - business_path.getSource(context=context_movement, default='something')) + self.assertFalse(business_path.getArrowCategoryDict(context=context_movement).has_key('source')) def test_BusinessState_getRemainingTradePhaseList(self): """ -- 2.30.9