From 479322328236cad0726570c01d736eba658d16fb Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Tue, 15 Jan 2008 12:59:25 +0000 Subject: [PATCH] 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 --- product/ERP5Type/tests/testERP5Type.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/product/ERP5Type/tests/testERP5Type.py b/product/ERP5Type/tests/testERP5Type.py index 898698320c..00b392f016 100644 --- a/product/ERP5Type/tests/testERP5Type.py +++ b/product/ERP5Type/tests/testERP5Type.py @@ -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)) -- 2.30.9