Commit 20f2f4ea authored by Sebastien Robin's avatar Sebastien Robin

small changes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1965 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9aeee66
......@@ -148,6 +148,9 @@ class TestCMFCategory(ERP5TypeTestCase):
if not quiet:
ZopeTestCase._print('\n Test Single Category ')
LOG('Testing... ',0,'testSingleCategory')
o1 = self.getOrganisationModule()._getOb(self.id1)
LOG('SingleCategory,',0,o1.getGroupRelatedValueList())
p1 = self.getPersonModule()._getOb(self.id1)
p1.setRegion(self.region1)
self.assertEqual(p1.getRegion(),self.region1)
......@@ -161,8 +164,10 @@ class TestCMFCategory(ERP5TypeTestCase):
ZopeTestCase._print('\n Test Multiple Category ')
LOG('Testing... ',0,'testMultipleCategory')
portal = self.getPortal()
region_value_list = [portal.portal_categories.resolveCategory(self.region1),
portal.portal_categories.resolveCategory(self.region2)]
region_value_list = [portal.portal_categories.resolveCategory('region/%s' % self.region1),
portal.portal_categories.resolveCategory('region/%s' % self.region2)]
self.assertNotEqual(None,region_value_list[0])
self.assertNotEqual(None,region_value_list[1])
p1 = self.getPersonModule()._getOb(self.id1)
p1.setRegion(self.region_list)
self.assertEqual(p1.getRegion(),self.region1)
......@@ -176,7 +181,8 @@ class TestCMFCategory(ERP5TypeTestCase):
ZopeTestCase._print('\n Test Category Value ')
LOG('Testing... ',0,'testCategoryValue')
portal = self.getPortal()
region_value = portal.portal_categories.resolveCategory(self.region1)
region_value = portal.portal_categories.resolveCategory('region/%s' % self.region1)
self.assertNotEqual(None,region_value)
p1 = self.getPersonModule()._getOb(self.id1)
p1.setRegion(self.region_list)
self.assertEqual(p1.getRegionValue(),region_value)
......
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