Commit 50c6596c authored by Arnaud Fontaine's avatar Arnaud Fontaine

Followup of acd9b497 for legacy Simulation.

parent fed459cb
......@@ -1729,6 +1729,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
portal_type=self.packing_list_line_portal_type,
reference='bbb',
int_index=1)
line_bbb_cell_bbb = line_bbb.newContent(
portal_type=self.packing_list_cell_portal_type,
reference='bbb',
int_index=2)
line_bbb_cell_aaa = line_bbb.newContent(
portal_type=self.packing_list_cell_portal_type,
reference='aaa',
int_index=1)
line_aaa = packing_list.newContent(
portal_type=self.packing_list_line_portal_type,
reference='aaa',
......@@ -1746,14 +1754,14 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
# check it's possible to sort by reference
reference_result = packing_list.getMovementList(sort_on=
[('reference', 'descending')])
self.assertEquals(reference_result, [line_aaa, line_bbb, line_ccc,
line_ddd])
self.assertEquals(reference_result, [line_ddd, line_ccc,
line_bbb_cell_bbb, line_bbb_cell_aaa, line_aaa])
# check it's possible to sort by int_index
int_index_result = packing_list.getMovementList(sort_on=
[('int_index', 'ascending')])
self.assertEquals(int_index_result, [line_ccc, line_ddd, line_aaa,
line_bbb])
self.assertEquals(int_index_result, [line_bbb_cell_aaa, line_bbb_cell_bbb,
line_aaa, line_ddd, line_ccc])
def test_subcontent_reindexing_container_line_cell(self):
"""Tests, that indexation of Packing List are propagated to subobjects
......
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