[Erp5-report] r35928 kazuhiko - /erp5/trunk/products/ERP5/tests/testERP5Core.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Jun 3 10:05:18 CEST 2010


Author: kazuhiko
Date: Thu Jun  3 10:05:16 2010
New Revision: 35928

URL: http://svn.erp5.org?rev=35928&view=rev
Log:
add a test if getUid() == getProperty('uid') for tools etc.

Modified:
    erp5/trunk/products/ERP5/tests/testERP5Core.py

Modified: erp5/trunk/products/ERP5/tests/testERP5Core.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Core.py?rev=35928&r1=35927&r2=35928&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Core.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Core.py [utf8] Thu Jun  3 10:05:16 2010
@@ -490,6 +490,12 @@
     transaction.savepoint(optimistic=True)
     self.assertEquals(len(module.objectValues()), 2)
 
+  def test_getPropertyForUid(self):
+    error_list = []
+    for i in self.portal.objectValues():
+      if i.getUid() != i.getProperty('uid'):
+        error_list.append((i.getId(), i.getUid(), i.getProperty('uid')))
+    self.assertEquals(error_list, [])
 
 def test_suite():
   suite = unittest.TestSuite()




More information about the Erp5-report mailing list