Commit a4204321 authored by Jens Vagelpohl's avatar Jens Vagelpohl

- LP #374818: Use module-provided functions as opposed to the old

  "folder methods" when creating folders and user folders in
  ZopeTestCase.
parent 61df1bb4
...@@ -181,6 +181,10 @@ Features Added ...@@ -181,6 +181,10 @@ Features Added
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- LP #374818: Use module-provided functions as opposed to the old
"folder methods" when creating folders and user folders in
ZopeTestCase.
- LP #143946: Provide a more informative error message when a - LP #143946: Provide a more informative error message when a
WebDAV PUT fails. WebDAV PUT fails.
......
...@@ -63,14 +63,16 @@ class ZopeTestCase(base.TestCase): ...@@ -63,14 +63,16 @@ class ZopeTestCase(base.TestCase):
def _setupFolder(self): def _setupFolder(self):
'''Creates and configures the folder.''' '''Creates and configures the folder.'''
self.app.manage_addFolder(folder_name) from OFS.Folder import manage_addFolder
manage_addFolder(self.app, folder_name)
self.folder = getattr(self.app, folder_name) self.folder = getattr(self.app, folder_name)
self.folder._addRole(user_role) self.folder._addRole(user_role)
self.folder.manage_role(user_role, standard_permissions) self.folder.manage_role(user_role, standard_permissions)
def _setupUserFolder(self): def _setupUserFolder(self):
'''Creates the user folder.''' '''Creates the user folder.'''
self.folder.manage_addUserFolder() from AccessControl.User import manage_addUserFolder
manage_addUserFolder(self.folder)
def _setupUser(self): def _setupUser(self):
'''Creates the default user.''' '''Creates the default user.'''
......
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