[Erp5-report] r18715 - /erp5/trunk/products/ERP5Type/tests/testERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 15 13:59:26 CET 2008


Author: romain
Date: Tue Jan 15 13:59:25 2008
New Revision: 18715

URL: http://svn.erp5.org?rev=18715&view=rev
Log:
Check that getCreationDate does not acquire the result value from parent

Modified:
    erp5/trunk/products/ERP5Type/tests/testERP5Type.py

Modified: erp5/trunk/products/ERP5Type/tests/testERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testERP5Type.py?rev=18715&r1=18714&r2=18715&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testERP5Type.py (original)
+++ erp5/trunk/products/ERP5Type/tests/testERP5Type.py Tue Jan 15 13:59:25 2008
@@ -1860,6 +1860,18 @@
       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))




More information about the Erp5-report mailing list