Commit 739c3840 authored by Yoshinori Okuji's avatar Yoshinori Okuji

There is no reason that a response is set without publishing. It is rather...

There is no reason that a response is set without publishing. It is rather mysterious that it was working before.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39275 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2747c22
......@@ -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()
......
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