Commit 5305a747 authored by Nicolas Delaby's avatar Nicolas Delaby

small enhancement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29165 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8801758
...@@ -45,6 +45,9 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -45,6 +45,9 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
password = 'bobpwd' password = 'bobpwd'
first_name = 'Bob' first_name = 'Bob'
def getTitle(self):
return 'Test Deferred Style'
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_crm', 'erp5_ods_style', 'erp5_odt_style', 'erp5_deferred_style',) return ('erp5_base', 'erp5_crm', 'erp5_ods_style', 'erp5_odt_style', 'erp5_deferred_style',)
...@@ -97,7 +100,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -97,7 +100,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
content_type = part.get_content_type() content_type = part.get_content_type()
file_name = part.get_filename() file_name = part.get_filename()
if file_name == 'report_view': 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 ok = 1
break break
if not ok: if not ok:
......
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