Commit 7a708b8a authored by Fabien Morin's avatar Fabien Morin

confusion on the read only test : we want to test that the field his not...

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


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20400 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b029dbec
......@@ -280,12 +280,12 @@ class TestScribusUtils(ERP5TypeTestCase):
# 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)
......
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