Commit e80130fb authored by Jérome Perrin's avatar Jérome Perrin

since 27277 tester accessors are generated during startup and will still be

present if a category is added


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27720 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5629ef2a
......@@ -1146,8 +1146,9 @@ class TestCMFCategory(ERP5TypeTestCase):
self.assertRaises(AttributeError, getattr, obj, 'getRegion')
self.assertRaises(AttributeError, getattr, obj, 'getRegionValueList')
self.assertRaises(AttributeError, getattr, obj, 'getRegionList')
#Tester
self.assertRaises(AttributeError, getattr, obj, 'hasRegion')
# Tester are always present, because they are genereted on the BaseClass
# during startup
# self.assertRaises(AttributeError, getattr, obj, 'hasRegion')
finally:
#add Base Category
self.portal.portal_categories.newContent(id='region', portal_type='Base Category')
......@@ -1162,8 +1163,6 @@ class TestCMFCategory(ERP5TypeTestCase):
self.assertTrue(getattr(obj, 'getRegion') is not None)
self.assertTrue(getattr(obj, 'getRegionValueList') is not None)
self.assertTrue(getattr(obj, 'getRegionList') is not None)
#Tester
self.assertTrue(getattr(obj, 'hasRegion') is not None)
def test_suite():
suite = unittest.TestSuite()
......
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