From c9bd0e156c83906b82cf2dec4a0d3c0d312eda56 Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Fri, 9 Mar 2012 19:03:35 -0300
Subject: [PATCH] For the tests listed bellow, those tests are trying to access
 web_site_module from self object. Tests:
 test_03_WebSection_getDocumentValueListSecurity test_04_ExpireUserAction
 test_05_createWebSite test_06_createWebSection
 test_WebSiteModuleDefaultSecurity test_getDocumentValueList_AnonymousUser

---
 product/ERP5/tests/testERP5Web.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5/tests/testERP5Web.py b/product/ERP5/tests/testERP5Web.py
index 4c5e54b4e1..1a08fe6d68 100644
--- a/product/ERP5/tests/testERP5Web.py
+++ b/product/ERP5/tests/testERP5Web.py
@@ -1369,6 +1369,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
     user_folder._doAddUser(name, 'password', role_list, [])
 
   def afterSetUp(self):
+    self.web_site_module = self.portal.web_site_module
     self.portal.Localizer = DummyLocalizer()
     self.createUser('admin', ['Manager'])
     self.createUser('erp5user', ['Auditor', 'Author'])
-- 
2.30.9