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
3cbd69a8
Commit
3cbd69a8
authored
Nov 01, 2008
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean out module-scope imports, wrap long lines.
parent
e9fce716
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
178 additions
and
152 deletions
+178
-152
lib/python/OFS/tests/testCopySupportEvents.py
lib/python/OFS/tests/testCopySupportEvents.py
+8
-4
lib/python/OFS/tests/testTraverse.py
lib/python/OFS/tests/testTraverse.py
+170
-148
No files found.
lib/python/OFS/tests/testCopySupportEvents.py
View file @
3cbd69a8
...
...
@@ -156,7 +156,8 @@ class TestCopySupport(EventTest):
# Test webdav COPY
req
=
self
.
app
.
REQUEST
req
.
environ
[
'HTTP_DEPTH'
]
=
'infinity'
req
.
environ
[
'HTTP_DESTINATION'
]
=
'%s/subfolder/mydoc'
%
self
.
folder
.
absolute_url
()
req
.
environ
[
'HTTP_DESTINATION'
]
=
(
'%s/subfolder/mydoc'
%
self
.
folder
.
absolute_url
())
self
.
folder
.
mydoc
.
COPY
(
req
,
req
.
RESPONSE
)
self
.
assertEqual
(
eventlog
.
called
(),
[(
'mydoc'
,
'ObjectCopiedEvent'
),
...
...
@@ -170,7 +171,8 @@ class TestCopySupport(EventTest):
# Test webdav MOVE
req
=
self
.
app
.
REQUEST
req
.
environ
[
'HTTP_DEPTH'
]
=
'infinity'
req
.
environ
[
'HTTP_DESTINATION'
]
=
'%s/subfolder/mydoc'
%
self
.
folder
.
absolute_url
()
req
.
environ
[
'HTTP_DESTINATION'
]
=
(
'%s/subfolder/mydoc'
%
self
.
folder
.
absolute_url
())
self
.
folder
.
mydoc
.
MOVE
(
req
,
req
.
RESPONSE
)
self
.
assertEqual
(
eventlog
.
called
(),
[(
'mydoc'
,
'ObjectWillBeMovedEvent'
),
...
...
@@ -278,7 +280,8 @@ class TestCopySupportSublocation(EventTest):
# Test webdav COPY
req
=
self
.
app
.
REQUEST
req
.
environ
[
'HTTP_DEPTH'
]
=
'infinity'
req
.
environ
[
'HTTP_DESTINATION'
]
=
'%s/subfolder/myfolder'
%
self
.
folder
.
absolute_url
()
req
.
environ
[
'HTTP_DESTINATION'
]
=
(
'%s/subfolder/myfolder'
%
self
.
folder
.
absolute_url
())
self
.
folder
.
myfolder
.
COPY
(
req
,
req
.
RESPONSE
)
self
.
assertEqual
(
eventlog
.
called
(),
[(
'myfolder'
,
'ObjectCopiedEvent'
),
...
...
@@ -296,7 +299,8 @@ class TestCopySupportSublocation(EventTest):
# Test webdav MOVE
req
=
self
.
app
.
REQUEST
req
.
environ
[
'HTTP_DEPTH'
]
=
'infinity'
req
.
environ
[
'HTTP_DESTINATION'
]
=
'%s/subfolder/myfolder'
%
self
.
folder
.
absolute_url
()
req
.
environ
[
'HTTP_DESTINATION'
]
=
(
'%s/subfolder/myfolder'
%
self
.
folder
.
absolute_url
())
self
.
folder
.
myfolder
.
MOVE
(
req
,
req
.
RESPONSE
)
self
.
assertEqual
(
eventlog
.
called
(),
[(
'myfolder'
,
'ObjectWillBeMovedEvent'
),
...
...
lib/python/OFS/tests/testTraverse.py
View file @
3cbd69a8
This diff is collapsed.
Click to expand it.
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