Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4c37e2c4
Commit
4c37e2c4
authored
Jan 29, 2009
by
Stefan H. Holek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged trunk r95406 into 2.11 branch.
Use a layer to load the CA (we need the container handlers).
parent
2d502121
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
lib/python/OFS/tests/testCopySupportHooks.py
lib/python/OFS/tests/testCopySupportHooks.py
+20
-2
No files found.
lib/python/OFS/tests/testCopySupportHooks.py
View file @
4c37e2c4
...
...
@@ -5,6 +5,9 @@ Zope2.startup()
import
transaction
from
zope.testing
import
cleanup
from
Products.Five
import
zcml
from
Testing.makerequest
import
makerequest
from
AccessControl.SecurityManagement
import
newSecurityManager
...
...
@@ -55,12 +58,27 @@ class TestFolder(Folder):
from
Products.Five.eventconfigure
import
setDeprecatedManageAddDelete
setDeprecatedManageAddDelete
(
TestItem
)
setDeprecatedManageAddDelete
(
TestFolder
)
class
HookLayer
:
@
classmethod
def
setUp
(
cls
):
cleanup
.
cleanUp
()
zcml
.
_initialized
=
0
zcml
.
load_site
()
setDeprecatedManageAddDelete
(
TestItem
)
setDeprecatedManageAddDelete
(
TestFolder
)
@
classmethod
def
tearDown
(
cls
):
cleanup
.
cleanUp
()
zcml
.
_initialized
=
0
class
HookTest
(
unittest
.
TestCase
):
layer
=
HookLayer
def
setUp
(
self
):
self
.
app
=
makerequest
(
Zope2
.
app
())
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment