Commit 30a79319 authored by Nicolas Delaby's avatar Nicolas Delaby

Update test according recent refactoring

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41464 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e413e27
......@@ -318,12 +318,12 @@ class TestDateTimeField(ERP5TypeTestCase):
.xpath('%s/text()' % ODG_XML_WRAPPING_XPATH, namespaces=NSMAP)[0])
def test_render_odt_variable(self):
value = DateTime(2010, 12, 06, 10, 23, 32)
value = DateTime(2010, 12, 06, 10, 23, 32, 'GMT+5')
self.field.values['default'] = value
node = self.field.render_odt_variable(as_string=False)
self.assertEquals(node.get('{%s}value-type' % NSMAP['office']), 'date')
self.assertEquals(node.get('{%s}date-value' % NSMAP['office']),
value.strftime('%Y-%m-%d %H:%M:%S'))
value.ISO8601())
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