From 516a8b78de3d672d6af2b1eb24a2cd0244a54bd1 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Mon, 17 May 2010 17:04:00 +0000
Subject: [PATCH] * This test needs erp5_base to access
 Document_checkConversionFormatPermission * content-disposition header is now
 qualified as attachment, not inline.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35401 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/tests/testOOoBatchMode.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5OOo/tests/testOOoBatchMode.py b/product/ERP5OOo/tests/testOOoBatchMode.py
index 14dc753b5a..5bfa0bffbc 100644
--- a/product/ERP5OOo/tests/testOOoBatchMode.py
+++ b/product/ERP5OOo/tests/testOOoBatchMode.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 ##############################################################################
 #
 # Copyright (c) 2004, 2005, 2006 Nexedi SARL and Contributors. 
@@ -49,7 +50,7 @@ class TestOoodResponse(ERP5TypeTestCase):
     newSecurityManager(None, user)
 
   def getBusinessTemplateList(self):
-    return ()
+    return ('erp5_base',)
 
   def afterSetUp(self):
     self.login()
@@ -77,7 +78,7 @@ class TestOoodResponse(ERP5TypeTestCase):
     ERP5Site_viewNothingAsOdt(batch_mode=0)
     self.assertEqual('application/vnd.oasis.opendocument.text',
         request.RESPONSE.getHeader('content-type').split(';')[0])
-    self.assertEqual('inline;filename="ERP5Site_viewNothingAsOdt.odt"',
+    self.assertEqual('attachment; filename="ERP5Site_viewNothingAsOdt.odt"',
         request.RESPONSE.getHeader('content-disposition'))
 
   def test_01b_noExcEmptyFormatNoBatchMode(self):
@@ -87,7 +88,7 @@ class TestOoodResponse(ERP5TypeTestCase):
     ERP5Site_viewNothingAsOdt(format='', batch_mode=0)
     self.assertEqual('application/vnd.oasis.opendocument.text',
         request.RESPONSE.getHeader('content-type').split(';')[0])
-    self.assertEqual('inline;filename="ERP5Site_viewNothingAsOdt.odt"',
+    self.assertEqual('attachment; filename="ERP5Site_viewNothingAsOdt.odt"',
         request.RESPONSE.getHeader('content-disposition'))
     
   def test_02_noExcNoFormatBatchMode(self):
-- 
2.30.9