Commit 47932232 authored by Romain Courteaud's avatar Romain Courteaud

Check that getCreationDate does not acquire the result value from parent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18715 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74d28015
......@@ -1860,6 +1860,18 @@ class TestPropertySheet:
subdocument_catalogged_path = self.getPortalObject().portal_catalog.getSQLCatalog()[subdocument.uid].path
self.assertEqual(subdocument.getPath(), subdocument_catalogged_path)
def test_getCreationDate(self, quiet=quiet, run=run_all_test):
"""
Check that getCreationDate does not acquire creation_date property from
site.
"""
if not run: return
portal = self.getPortalObject()
folder = self.getOrganisationModule()
object = folder.newContent(portal_type='Organisation')
self.assertNotEquals(object.getCreationDate(), portal.CreationDate())
self.assertNotEquals(object.getCreationDate(), folder.getCreationDate())
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5Type))
......
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