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
6d2ab21f
Commit
6d2ab21f
authored
Aug 01, 2002
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify tests by moving 'not in req.other' test up to _processInputs.
parent
d3305d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
lib/python/ZPublisher/tests/testHTTPRequest.py
lib/python/ZPublisher/tests/testHTTPRequest.py
+1
-14
No files found.
lib/python/ZPublisher/tests/testHTTPRequest.py
View file @
6d2ab21f
...
...
@@ -34,6 +34,7 @@ class ProcessInputsTests(unittest.TestCase):
env
[
'QUERY_STRING'
]
=
query_string
req
=
self
.
_getHTTPRequest
(
env
)
req
.
processInputs
()
self
.
_noFormValuesInOther
(
req
)
return
req
def
_noTaintedValues
(
self
,
req
):
...
...
@@ -110,7 +111,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'spacey key'
,
'val'
),
(
'key'
,
'spacey val'
),
(
'multi'
,
'1'
),
(
'multi'
,
'2'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
@@ -135,7 +135,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'multiline:lines'
,
'one
\
n
two'
),
(
'morewords:text'
,
'one
\
n
two
\
n
'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
@@ -163,7 +162,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'nouconverter:string:utf8'
,
'test
\
xc2
\
xae
'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
@@ -191,7 +189,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'setrec.foo:records'
,
'foo'
),
(
'setrec.bar:records'
,
'bar'
),
(
'setrec.foo:records'
,
'spam'
),
(
'setrec.bar:records'
,
'eggs'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
@@ -221,7 +218,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'ftuple:tuple:float'
,
'1.2'
),
(
'tlist:tokens:list'
,
'one two'
),
(
'tlist:list:tokens'
,
'3 4'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
@@ -252,7 +248,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'setrec.ituple:tuple:int:records'
,
'1'
),
(
'setrec.ituple:tuple:int:records'
,
'2'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
@@ -300,7 +295,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'setrec.foo:records'
,
'ham'
),
)
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
@@ -332,7 +326,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'spacey key'
,
'val'
),
(
'key'
,
'spacey val'
),
(
'multi'
,
'1'
),
(
'multi'
,
'2'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
taintedformkeys
=
list
(
req
.
taintedform
.
keys
())
taintedformkeys
.
sort
()
...
...
@@ -349,7 +342,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'spacey key'
,
'val'
),
(
'key'
,
'spacey val'
),
(
'multi'
,
'1'
),
(
'multi'
,
'2'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
taintedformkeys
=
list
(
req
.
taintedform
.
keys
())
taintedformkeys
.
sort
()
...
...
@@ -370,7 +362,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'tnouconverter:string:utf8'
,
'<test
\
xc2
\
xae
>'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
taintedformkeys
=
list
(
req
.
taintedform
.
keys
())
taintedformkeys
.
sort
()
...
...
@@ -420,7 +411,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'tdeferdefersetrec.foo:records'
,
'spam'
),
(
'tdeferdefersetrec.bar:records'
,
'<eggs>'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
taintedformkeys
=
list
(
req
.
taintedform
.
keys
())
taintedformkeys
.
sort
()
...
...
@@ -471,7 +461,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'tdefersecondsetrec.ituple:tuple:int:records'
,
'2'
),
)
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
taintedformkeys
=
list
(
req
.
taintedform
.
keys
())
taintedformkeys
.
sort
()
...
...
@@ -524,7 +513,6 @@ class ProcessInputsTests(unittest.TestCase):
(
'srdoesnotapply.foo:records'
,
'baz'
),
(
'srdoesnotapply.foo:records'
,
'ham'
))
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
taintedformkeys
=
list
(
req
.
taintedform
.
keys
())
taintedformkeys
.
sort
()
...
...
@@ -559,7 +547,6 @@ class ProcessInputsTests(unittest.TestCase):
inputs
=
(
(
'name.:tuple'
,
'name with dot as tuple'
),)
req
=
self
.
_processInputs
(
inputs
)
self
.
_noFormValuesInOther
(
req
)
formkeys
=
list
(
req
.
form
.
keys
())
formkeys
.
sort
()
...
...
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