From 29d3b287c00cd744915c93d0768a5e16de75a56f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 2 Dec 2009 10:39:50 +0000
Subject: [PATCH] update test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30974 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/tests/testOOoImport.py | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/product/ERP5OOo/tests/testOOoImport.py b/product/ERP5OOo/tests/testOOoImport.py
index 50e420333b..149415a839 100644
--- a/product/ERP5OOo/tests/testOOoImport.py
+++ b/product/ERP5OOo/tests/testOOoImport.py
@@ -455,6 +455,15 @@ class TestOOoImport(ERP5TypeTestCase):
     organisation_module.Base_importFile(import_file=f, listbox=listbox)
 
   def stepAuthorImportFile(self, sequence=None, sequence_list=None, **kw):
+    # create some regions
+    region = self.portal.portal_categories.region
+    europe = region.newContent(portal_type='Category',
+                      title='Europe',
+                      id='europe')
+    europe.newContent(portal_type='Category',
+                      title='France',
+                      id='france')
+
     user_name = 'author'
     user_folder = self.portal.acl_users
     user_folder._doAddUser(user_name, '', ['Author', 'Member'], [])
@@ -474,7 +483,9 @@ class TestOOoImport(ERP5TypeTestCase):
     { 'listbox_key': '003',
       'portal_type_property_list':'Person.gender'},
     { 'listbox_key': '004',
-      'portal_type_property_list':'Person.function'}
+      'portal_type_property_list':'Person.function'},
+    { 'listbox_key': '005',
+      'portal_type_property_list':'Person.region'}
     )
     person_module.Base_importFile(import_file=f, listbox=listbox)
 
-- 
2.30.9