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
a72f5e50
Commit
a72f5e50
authored
Oct 01, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of docstrings.
_request(): Avoid recompiling the regular expression on every call.
parent
491c5a04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
lib/python/AccessControl/securitySuite/testSecurity.py
lib/python/AccessControl/securitySuite/testSecurity.py
+5
-6
No files found.
lib/python/AccessControl/securitySuite/testSecurity.py
View file @
a72f5e50
...
...
@@ -196,7 +196,7 @@ class SecurityTests(unittest.TestCase) :
def
testPublicFuncWithWrongAuth
(
self
):
""" testing PublicFunc"""
""" testing PublicFunc
with wrong auth
"""
path
=
"/folder1/object1/public_func"
...
...
@@ -216,7 +216,7 @@ class SecurityTests(unittest.TestCase) :
def
testProtectedFunc
(
self
):
""" testing Pr
ivate
Func"""
""" testing Pr
otected
Func"""
path
=
"/folder1/object1/protected_func"
...
...
@@ -264,15 +264,14 @@ class SecurityTests(unittest.TestCase) :
def
_request
(
self
,
*
args
,
**
kw
):
reg
=
re
.
compile
(
"Status: ([0-9]{1,4}) (.*)"
,
re
.
I
)
\
_reg
=
re
.
compile
(
"Status: ([0-9]{1,4}) (.*)"
,
re
.
I
)
def
_request
(
self
,
*
args
,
**
kw
):
io
=
cStringIO
.
StringIO
()
kw
[
's'
]
=
io
ZPublisher
.
Zope
(
*
args
,
**
kw
)
outp
=
io
.
getvalue
()
mo
=
reg
.
search
(
outp
)
mo
=
self
.
_
reg
.
search
(
outp
)
code
,
txt
=
mo
.
groups
()
...
...
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