[Zope-Checkins] CVS: Zope/lib/python/ZPublisher/tests - testHTTPRequest.py:1.6
Martijn Pieters
mj@zope.com
Thu, 1 Aug 2002 14:42:03 -0400
Update of /cvs-repository/Zope/lib/python/ZPublisher/tests
In directory cvs.zope.org:/tmp/cvs-serv7209/lib/python/ZPublisher/tests
Modified Files:
testHTTPRequest.py
Log Message:
Fix for COllector #500 merged from 2.5 branch.
=== Zope/lib/python/ZPublisher/tests/testHTTPRequest.py 1.5 => 1.6 ===
self.failIf('<' in e,
'%s converter does not quote unsafe value!' % type)
+ def testNameWithDotAsTuple(self):
+ # Collector #500
+ inputs = (
+ ('name.:tuple', 'name with dot as tuple'),)
+ req = self._processInputs(inputs)
+ self._noFormValuesInOther(req)
+
+ formkeys = list(req.form.keys())
+ formkeys.sort()
+ self.assertEquals(formkeys, ['name.'])
+
+ self.assertEquals(req['name.'], ('name with dot as tuple',))
+
+ self._noTaintedValues(req)
+ self._onlyTaintedformHoldsTaintedStrings(req)
+
def test_suite():
suite = unittest.TestSuite()