[Erp5-report] r39037 kazuhiko - /erp5/trunk/products/ERP5/tests/testERP5Web.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 11 23:30:07 CEST 2010
Author: kazuhiko
Date: Mon Oct 11 23:30:05 2010
New Revision: 39037
URL: http://svn.erp5.org?rev=39037&view=rev
Log:
follow the change in r39007.
Modified:
erp5/trunk/products/ERP5/tests/testERP5Web.py
Modified: erp5/trunk/products/ERP5/tests/testERP5Web.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Web.py?rev=39037&r1=39036&r2=39037&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Web.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Web.py [utf8] Mon Oct 11 23:30:05 2010
@@ -1426,6 +1426,7 @@ class TestERP5WebWithSimpleSecurity(ERP5
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(ERP5
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(ERP5
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):
More information about the Erp5-report
mailing list