diff --git a/product/ERP5OOo/tests/testFormPrintoutAsODT.py b/product/ERP5OOo/tests/testFormPrintoutAsODT.py index 4a29ce1eb147e3a4666b9ab3d6e7905a7310c232..d0b2ec0dd2a03f52078f9497f454f730b35bbc03 100644 --- a/product/ERP5OOo/tests/testFormPrintoutAsODT.py +++ b/product/ERP5OOo/tests/testFormPrintoutAsODT.py @@ -1219,6 +1219,7 @@ return [] ('my_figure', 'IntegerField', 221), ('my_float', 'FloatField', 23.43535), ('my_date', 'DateTimeField', DateTime('2010-12-6 23:24:15.234 GMT+6')), + ('my_boolean', 'CheckBoxField', False), ) for field_configuration in field_configuration_list: field_id, klass, value = field_configuration @@ -1253,6 +1254,12 @@ return [] elif klass == 'DateTimeField': self.assertEquals(node.get('{%s}value-type' % nsmap['office']), 'date') self.assertEquals(node.text, value.strftime('%d/%m/%Y %H:%M:%S')) + elif klass == 'CheckBoxField': + self.assertEquals(node.get('{%s}value-type' % nsmap['office']), + 'boolean') + self.assertEquals(node.get('{%s}boolean-value' % nsmap['office']), + 'false') + self.assertEquals(node.text, 'FALSE') else: raise NotImplementedError