From b4a5262eee96e8d327feb6408298c3322724e116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Mon, 24 May 2010 13:25:21 +0000 Subject: [PATCH] - mark as expectedFailure and explain the reason git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35568 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testERP5Base.py b/product/ERP5/tests/testERP5Base.py index 7198287477c..c24072af38d 100644 --- a/product/ERP5/tests/testERP5Base.py +++ b/product/ERP5/tests/testERP5Base.py @@ -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) -- 2.30.9