Commit ea95df0f authored by Romain Courteaud's avatar Romain Courteaud

Explicitely declare portal type to use to the method newCell.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4244 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2e7cfc2
......@@ -91,7 +91,8 @@ class TestXMLMatrix(ERP5TypeTestCase):
i = 0
for place in cartesianProduct(cell_range):
cell = matrix.newCell(*place, **kwd)
cell = matrix.newCell(portal_type="Delivery Cell",
*place, **kwd)
cell.test_id = i
i += 1
......@@ -160,7 +161,8 @@ class TestXMLMatrix(ERP5TypeTestCase):
i = 0
for place in cartesianProduct(cell_range):
cell = matrix.newCell(*place, **kwd)
cell = matrix.newCell(portal_type="Delivery Cell",
*place, **kwd)
cell.test_id = i
i += 1
......@@ -198,7 +200,8 @@ class TestXMLMatrix(ERP5TypeTestCase):
self.assertEqual(matrix.getCellRange(**kwd), cell_range)
for place in cartesianProduct(cell_range):
cell = matrix.newCell(*place, **kwd)
cell = matrix.newCell(portal_type="Delivery Cell",
*place, **kwd)
get_transaction().commit()
self.tic()
initial_cell_id_list = map(lambda x: x.getId(),matrix.objectValues())
......
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