Commit 41c3faf6 authored by Jérome Perrin's avatar Jérome Perrin

testFormPrintoutAsODT: explicitly specify expected value

It's better to explicitly specify the expected value, this test should
not depend on DateTime.strftime implementation, especially since this
implementation does some timezone conversion depending on time.tzname
parent a0668dd8
......@@ -1249,7 +1249,7 @@ return []
self.assertEqual(node.get('{%s}value' % nsmap['office']), str(value))
elif klass == 'DateTimeField':
self.assertEqual(node.get('{%s}value-type' % nsmap['office']), 'date')
self.assertEqual(node.text, value.strftime('%d/%m/%Y %H:%M:%S'))
self.assertEqual(node.text, '06/12/2010 23:24:15')
elif klass == 'CheckBoxField':
self.assertEqual(node.get('{%s}value-type' % nsmap['office']),
'boolean')
......
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