Commit 9473cfdd authored by Jérome Perrin's avatar Jérome Perrin

add comments to ease understanding of the assertRaise(ConversionError here


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16208 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5ec6e1f
......@@ -101,6 +101,8 @@ class TestOoodResponse(ERP5TypeTestCase):
request = self.portal.REQUEST
request.RESPONSE.setHeader('content-type', 'text/html')
ERP5Site_viewNothingAsOdt = self.getPortal().ERP5Site_viewNothingAsOdt
# This assumes that a conversion error is raised because oood coordinates
# are not defined in preferences.
self.assertRaises(ConversionError, ERP5Site_viewNothingAsOdt,
batch_mode=0, format='pdf')
self.assertEqual('text/html',
......@@ -110,6 +112,8 @@ class TestOoodResponse(ERP5TypeTestCase):
request = self.portal.REQUEST
request.RESPONSE.setHeader('content-type', 'text/html')
ERP5Site_viewNothingAsOdt = self.getPortal().ERP5Site_viewNothingAsOdt
# This assumes that a conversion error is raised because oood coordinates
# are not defined in preferences.
self.assertRaises(ConversionError, ERP5Site_viewNothingAsOdt,
batch_mode=1, format='pdf')
self.assertEqual('text/html', request.RESPONSE.getHeader('content-type').split(';')[0])
......
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