clean up some user traces from REQUEST on logout

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32423 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9a095822
......@@ -334,6 +334,13 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
"""
PortalTestCase.login(self, user_name)
def logout(self):
PortalTestCase.logout(self)
# clean up certain cache related REQUEST keys that might be associated
# with the logged in user
for key in ('_ec_cache', '_oai_cache'):
self.portal.REQUEST.other.pop(key, None)
def _setupUser(self):
'''Creates the default user.'''
uf = self.portal.acl_users
......
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