From ea95df0f1980f7f97d293757584bbd6fed5f4a65 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Sat, 5 Nov 2005 09:33:16 +0000
Subject: [PATCH] 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
---
 product/ERP5Type/tests/testXMLMatrix.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Type/tests/testXMLMatrix.py b/product/ERP5Type/tests/testXMLMatrix.py
index 586a4d0f4f..9abc2cb9c6 100755
--- a/product/ERP5Type/tests/testXMLMatrix.py
+++ b/product/ERP5Type/tests/testXMLMatrix.py
@@ -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())
-- 
2.30.9