Commit b4a5262e authored by Łukasz Nowak's avatar Łukasz Nowak

- mark as expectedFailure and explain the reason


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 290f8046
......@@ -37,6 +37,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.tests.utils import createZODBPythonScript, FileUpload
from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestERP5Base(ERP5TypeTestCase):
"""ERP5 Base tests.
......@@ -1527,11 +1528,14 @@ class TestERP5Base(ERP5TypeTestCase):
self.assertEquals('group/nexedi',
self.portal.portal_preferences.getPreferredSectionCategory())
# Marked as expectedFailure as it shall be never possible to use edit method to set
# local property which would override existing method
@expectedFailure
def test_content_type_property(self):
portal_type = 'Person'
person_module = self.portal.getDefaultModule(portal_type)
person = person_module.newContent(portal_type=portal_type)
# assert that test has a sense
self.assertEqual(getattr(person, 'getContentType', None), None)
......
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