Commit d2f4ea62 authored by Nicolas Delaby's avatar Nicolas Delaby

Check None values for render_odt_variables


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44293 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58ecb713
......@@ -334,6 +334,9 @@ class TestDateTimeField(ERP5TypeTestCase):
self.assertEquals(node.get('{%s}value-type' % NSMAP['office']), 'date')
self.assertEquals(node.get('{%s}date-value' % NSMAP['office']),
value.ISO8601())
self.field.values['default'] = None
node = self.field.render_odt_variable(as_string=False)
self.assertTrue(node is not None)
class TestTextAreaField(ERP5TypeTestCase):
"""Tests TextArea field
......
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