Commit 851e7760 authored by Łukasz Nowak's avatar Łukasz Nowak

Update test for lazy links.

parent 6e358860
...@@ -434,8 +434,8 @@ class TestTradeModelLine(TestTradeModelLineMixin): ...@@ -434,8 +434,8 @@ class TestTradeModelLine(TestTradeModelLineMixin):
if True: if True:
sm = result_dict.pop(use) sm = result_dict.pop(use)
self.assertEqual(str(sm.getTotalPrice() or 0.0), str(total_price)) self.assertEqual(str(sm.getTotalPrice() or 0.0), str(total_price))
self.assertEqual(3, len(sm.getCausalityValueList())) self.assertEqual(2, len(sm.getCausalityValueList()))
self.assertEqual(1, len(sm.getCausalityValueList( self.assertEqual(0, len(sm.getCausalityValueList(
portal_type=self.business_link_portal_type))) portal_type=self.business_link_portal_type)))
self.assertEqual(1, len(sm.getCausalityValueList( self.assertEqual(1, len(sm.getCausalityValueList(
portal_type=self.trade_model_path_portal_type))) portal_type=self.trade_model_path_portal_type)))
......
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