diff --git a/product/ERP5/tests/testERP5WebWithDms.py b/product/ERP5/tests/testERP5WebWithDms.py index cb3f84c01767c533ae63d54226d90825d81d364e..22b086193085964db1f4e3229771a02d8926f826 100644 --- a/product/ERP5/tests/testERP5WebWithDms.py +++ b/product/ERP5/tests/testERP5WebWithDms.py @@ -265,7 +265,9 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): # viewing non available document in Web Section (with no authorization_forced) self.logout() self.assertEqual(None, websection._getExtensibleContent(request, document_reference)) - self.assertEqual('404 Not Found', request.RESPONSE.getHeader('status')) + path = websection.absolute_url_path() + '/' + document_reference + response = self.publish(path) + self.assertEqual(404, response.getStatus()) # set authorization_forced flag self.login()