diff --git a/product/ERP5OOo/tests/testDeferredStyle.py b/product/ERP5OOo/tests/testDeferredStyle.py index 4cd14d562e3e82bd570841ae4a66820322546c17..35873fd35459e51a8e1e469be1e4d1f7de957dbb 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: