From 5a540c1cd13b29a44bc800ef86609834dc01ee0c Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Fri, 11 Jun 2010 06:14:46 +0000
Subject: [PATCH] Test default Web Site Module security.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36257 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testERP5Web.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/product/ERP5/tests/testERP5Web.py b/product/ERP5/tests/testERP5Web.py
index 20a407c523..70ea163f85 100644
--- a/product/ERP5/tests/testERP5Web.py
+++ b/product/ERP5/tests/testERP5Web.py
@@ -1661,6 +1661,15 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
     self.logout()
     self.assertEquals(1, len(website.WebSection_getDocumentValueList()))
 
+  def test_WebSiteModuleDefaultSecurity(self):
+    """
+      Test that by default Anonymous User may access Web Site Module
+    """
+    portal = self.portal
+    self.logout()
+    portal.restrictedTraverse('web_site_module')
+    portal.web_site_module.view()
+
 
 class TestERP5WebCategoryPublicationWorkflow(ERP5TypeTestCase):
   """Tests possible transitions for category_publication_workflow"""
-- 
2.30.9