[Erp5-report] r20400 - /erp5/trunk/products/ERP5Form/tests/testScribusUtils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 9 17:53:04 CEST 2008


Author: fabien
Date: Wed Apr  9 17:53:04 2008
New Revision: 20400

URL: http://svn.erp5.org?rev=20400&view=rev
Log:
confusion on the read only test : we want to test that the field his not editable at the first time, and it is at the second time

Modified:
    erp5/trunk/products/ERP5Form/tests/testScribusUtils.py

Modified: erp5/trunk/products/ERP5Form/tests/testScribusUtils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/tests/testScribusUtils.py?rev=20400&r1=20399&r2=20400&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/tests/testScribusUtils.py (original)
+++ erp5/trunk/products/ERP5Form/tests/testScribusUtils.py Wed Apr  9 17:53:04 2008
@@ -280,12 +280,12 @@
     # check the read_only fields are read_only :
     for field_name in read_only_field_name_list:
       field = getattr(form, field_name, None)
-      self.assertEquals(field.values['editable'], 1)
+      self.assertEquals(field.values['editable'], 0)
 
     # check fields not read_only are not :
     for field_name in not_read_only_field_name_list:
       field = getattr(form, field_name, None)
-      self.assertNotEquals(field.values['editable'], 1)
+      self.assertEquals(field.values['editable'], 1)
 
 
 




More information about the Erp5-report mailing list