From 5305a747086f2c0358c3d09295afd6ed42d6f84f Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Thu, 24 Sep 2009 12:31:06 +0000
Subject: [PATCH] small enhancement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29165 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/tests/testDeferredStyle.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/product/ERP5OOo/tests/testDeferredStyle.py b/product/ERP5OOo/tests/testDeferredStyle.py
index 4cd14d562e..35873fd354 100644
--- a/product/ERP5OOo/tests/testDeferredStyle.py
+++ b/product/ERP5OOo/tests/testDeferredStyle.py
@@ -45,6 +45,9 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
   password = 'bobpwd'
   first_name = 'Bob'
 
+  def getTitle(self):
+    return 'Test Deferred Style'
+
   def getBusinessTemplateList(self):
     return ('erp5_base', 'erp5_crm', 'erp5_ods_style', 'erp5_odt_style', 'erp5_deferred_style',)
 
@@ -97,7 +100,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
       content_type = part.get_content_type()
       file_name = part.get_filename()
       if file_name == 'report_view':
-        self.assertEquals(part.get_type(), 'application/vnd.oasis.opendocument.text')
+        self.assertEquals(content_type, 'application/vnd.oasis.opendocument.text')
         ok = 1
         break
     if not ok:
-- 
2.30.9