Commit 6b761d11 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

follow the change in r39007.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39037 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4bede2c
......@@ -1426,6 +1426,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
web_site_module = self.portal.web_site_module
site = web_site_module.newContent(portal_type='Web Site',
id='site')
site.publish()
section = site.newContent(portal_type='Web Section',
id='section')
......@@ -1761,6 +1762,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
website = self.portal.web_site_module.newContent(portal_type='Web Site',
id='site')
website.publish()
website.setMembershipCriterionBaseCategory('follow_up')
website.setMembershipCriterionDocumentList(['follow_up/%s' %
project.getRelativeUrl()])
......@@ -1793,12 +1795,11 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
def test_WebSiteModuleDefaultSecurity(self):
"""
Test that by default Anonymous User may access Web Site Module
Test that by default Anonymous User cannot access Web Site Module
"""
portal = self.portal
self.logout()
portal.restrictedTraverse('web_site_module')
portal.web_site_module.view()
self.assertRaises(Unauthorized, portal.web_site_module.view)
class TestERP5WebCategoryPublicationWorkflow(ERP5TypeTestCase):
......
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