Commit 75064b92 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Prefer an AssertionError over an AttributeError in testItem


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33512 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 742372bf
...@@ -162,6 +162,7 @@ class TestItemMixin(TestSaleInvoiceMixin): ...@@ -162,6 +162,7 @@ class TestItemMixin(TestSaleInvoiceMixin):
""" Check items """ """ Check items """
order_line = sequence.get('order_line') order_line = sequence.get('order_line')
simulation_movement = order_line.getOrderRelatedValue() simulation_movement = order_line.getOrderRelatedValue()
self.failIf(simulation_movement is None)
self.checkAggregate(line=simulation_movement, sequence=sequence) self.checkAggregate(line=simulation_movement, sequence=sequence)
def stepCheckPackingListLineAggregate(self, sequence=None, def stepCheckPackingListLineAggregate(self, sequence=None,
......
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