Commit 9743b0bc authored by Nicolas Delaby's avatar Nicolas Delaby

test render_odg on DateTimeFields


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40517 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d19e25f3
......@@ -275,6 +275,13 @@ class TestDateTimeField(ERP5TypeTestCase):
self.assertEquals('2010/01/01 00:00',
self.field.render_odt(as_string=False).text)
def test_render_odg(self):
self.field.values['default'] = DateTime('2010/01/01 00:00:01 UTC')
self.field.render_odg(as_string=False)
self.assertEquals('2010/01/01 00:00',
self.field.render_odg(as_string=False)\
.xpath('%s/text()' % ODG_XML_WRAPPING_XPATH, namespaces=NSMAP)[0])
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