[Erp5-report] r21619 - /erp5/trunk/products/ERP5Form/tests/testScribusUtils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jun 16 15:13:47 CEST 2008
Author: fabien
Date: Mon Jun 16 15:13:47 2008
New Revision: 21619
URL: http://svn.erp5.org?rev=21619&view=rev
Log:
typo
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=21619&r1=21618&r2=21619&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/tests/testScribusUtils.py (original)
+++ erp5/trunk/products/ERP5Form/tests/testScribusUtils.py Mon Jun 16 15:13:47 2008
@@ -242,8 +242,7 @@
self.assertNotEquals(field.values['required'], 1)
def test_06_readOnlyFields(self):
- ''' Set read only property on a scribus field. After creating module with
- scribus, it should not be possible to edit it.'''
+ '''check the read_only fields are really read_only'''
# module creation using scribus file containing fields with read only
# property set:
self.portal.ERP5Site_createModuleScribus(
@@ -290,8 +289,7 @@
self.assertEquals(field.values['editable'], 1)
def test_07_DateTimeFieldWithModuleCreation(self):
- '''Just create a module using scribus file and pdf file with DateTimeField
- and test DateTime format'''
+ '''test DateTime format'''
self.portal.ERP5Site_createModuleScribus(
option_html=1,
@@ -350,9 +348,12 @@
expr_other_date = Expression(tales_expr_other_date)
expr_start_date = Expression(tales_expr_start_date)
expr_stop_date = Expression(tales_expr_stop_date)
- result_other_date = expr_other_date(getExprContext(authorisation, authorisation))
- result_start_date = expr_start_date(getExprContext(authorisation, authorisation))
- result_stop_date = expr_stop_date(getExprContext(authorisation, authorisation))
+ result_other_date = expr_other_date(getExprContext(authorisation,
+ authorisation))
+ result_start_date = expr_start_date(getExprContext(authorisation,
+ authorisation))
+ result_stop_date = expr_stop_date(getExprContext(authorisation,
+ authorisation))
self.assertEquals(result_other_date, '')
self.assertEquals(result_start_date, start_date.strftime('%d/%m/%Y'))
self.assertEquals(result_stop_date, stop_date.strftime('%Y/%m/%d %H:%M'))
More information about the Erp5-report
mailing list