diff --git a/product/ERP5/tests/testERP5WebWithDms.py b/product/ERP5/tests/testERP5WebWithDms.py index 3151f2fa8485b663927e66639f85672faea33580..139e93f26a3d0f8699859fef4fb8787afe94f81f 100644 --- a/product/ERP5/tests/testERP5WebWithDms.py +++ b/product/ERP5/tests/testERP5WebWithDms.py @@ -589,7 +589,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): # first, preview the draft in its physical location (in document module) response = self.publish('%s/asEntireHTML' % document.absolute_url_path(), credential) - self.assertEquals(response.getHeader('content-type'), 'text/html') + self.assertTrue(response.getHeader('content-type').startswith('text/html')) html = response.getBody() self.assertTrue('<img' in html, html) @@ -614,7 +614,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): response = self.publish('%s/%s/asEntireHTML' % ( website.absolute_url_path(), document_reference)) - self.assertEquals(response.getHeader('content-type'), 'text/html') + self.assertTrue(response.getHeader('content-type').startswith('text/html')) html = response.getBody() self.assertTrue('<img' in html, html)