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): ...@@ -1426,6 +1426,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
web_site_module = self.portal.web_site_module web_site_module = self.portal.web_site_module
site = web_site_module.newContent(portal_type='Web Site', site = web_site_module.newContent(portal_type='Web Site',
id='site') id='site')
site.publish()
section = site.newContent(portal_type='Web Section', section = site.newContent(portal_type='Web Section',
id='section') id='section')
...@@ -1761,6 +1762,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase): ...@@ -1761,6 +1762,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
website = self.portal.web_site_module.newContent(portal_type='Web Site', website = self.portal.web_site_module.newContent(portal_type='Web Site',
id='site') id='site')
website.publish()
website.setMembershipCriterionBaseCategory('follow_up') website.setMembershipCriterionBaseCategory('follow_up')
website.setMembershipCriterionDocumentList(['follow_up/%s' % website.setMembershipCriterionDocumentList(['follow_up/%s' %
project.getRelativeUrl()]) project.getRelativeUrl()])
...@@ -1793,12 +1795,11 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase): ...@@ -1793,12 +1795,11 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
def test_WebSiteModuleDefaultSecurity(self): 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 portal = self.portal
self.logout() self.logout()
portal.restrictedTraverse('web_site_module') self.assertRaises(Unauthorized, portal.web_site_module.view)
portal.web_site_module.view()
class TestERP5WebCategoryPublicationWorkflow(ERP5TypeTestCase): 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