Commit 94539916 authored by Jérome Perrin's avatar Jérome Perrin

update test after r34963


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34973 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ff63dac
......@@ -277,12 +277,12 @@ class TestTextAreaField(ERP5TypeTestCase):
def test_render_view(self):
self.field.values['default'] = 'My first Line\n&My Second Line\tfoo'
self.assertEquals('<div >My first Line<br/><br/>&amp;My Second Line\tfoo</div>',
self.assertEquals('<div >\nMy first Line<br/><br/>&amp;My Second Line\tfoo</div>',
self.field.render_view(value=['My first Line\n', '&My Second Line\tfoo']))
editable_mode = self.portal.REQUEST.get('editable_mode', 1)
self.portal.REQUEST.set('editable_mode', 0)
try:
self.assertEquals('<div >My first Line<br/>&amp;My Second Line\tfoo</div>',
self.assertEquals('<div >\nMy first Line<br/>&amp;My Second Line\tfoo</div>',
self.field.render(REQUEST=self.portal.REQUEST))
finally:
self.portal.REQUEST.set('editable_mode', editable_mode)
......@@ -314,7 +314,7 @@ class TestLinesField(ERP5TypeTestCase):
def test_render_view(self):
self.assertEquals(self.field.render_view(value=['My first Line\n', '&My Second Line\tfoo']),
'<div >My first Line<br />\n<br />\n&amp;My Second Line\tfoo</div>')
'<div >\nMy first Line<br />\n<br />\n&amp;My Second Line\tfoo</div>')
def test_render_odt(self):
self.field.values['default'] = ['A', 'B']
......
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