Commit 7e600f4e authored by Jérome Perrin's avatar Jérome Perrin

revert part of r25497 that is tested in a better place (this is test for

ERP5Type, not ERP5) in r25498


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25499 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e98bfd4
......@@ -883,24 +883,6 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
obj.edit(**{property_name: property_value})
self.assertEquals(obj.getProperty(property_name), property_value)
def test_10_setPropertyListNotDefinedProperty(self, quiet=quiet,
run=run_all_test):
"""Test for setProperty for a list on Base, when the property is not defined.
"""
if not run: return
portal = self.getPortal()
portal_type = "Organisation"
module = portal.getDefaultModule(portal_type=portal_type)
obj = module.newContent(portal_type=portal_type)
property_value = ('1', '2')
property_name = 'a_dummy_not_exising_property_list'
obj.setProperty(property_name, property_value)
self.assertEquals(obj.getProperty(property_name), property_value)
obj.setProperty(property_name, property_value)
self.assertEquals(obj.getProperty(property_name), property_value)
obj.edit(**{property_name: property_value})
self.assertEquals(obj.getProperty(property_name), property_value)
def test_11_setPropertyPropertyDefinedOnInstance(self,
quiet=quiet, run=run_all_test):
"""Test for setProperty on Base, when the property is defined on the
......
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