Commit 2bb2138f authored by Nicolas Dumazet's avatar Nicolas Dumazet

fail with AssertionError instead of IndexError if getCellValueList returns []


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35086 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2264c13
......@@ -747,7 +747,10 @@ class TestOrderMixin:
Test if order cell acquired some order line properties
"""
order_line = sequence.get('order_line')
cell = order_line.getCellValueList()[0]
cell_list = order_line.getCellValueList()
self.assertTrue(len(cell_list) > 0)
cell = cell_list[0]
self.checkAcquisition(cell, order_line)
# Test resource
self.assertEquals(order_line.getResource(), \
......
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