[Zope-Checkins] CVS: Zope/lib/python/ZPublisher/tests - testHTTPRequest.py:1.3
Martijn Pieters
mj@zope.com
Tue, 30 Jul 2002 11:02:39 -0400
Update of /cvs-repository/Zope/lib/python/ZPublisher/tests
In directory cvs.zope.org:/tmp/cvs-serv9626
Modified Files:
testHTTPRequest.py
Log Message:
Add explicit list defaults test.
=== Zope/lib/python/ZPublisher/tests/testHTTPRequest.py 1.2 => 1.3 ===
('alist:int', '1'),
('alist:int', '2'),
+ ('explicitlist:int:list:default', '3'),
+ ('explicitlist:int:list:default', '4'),
+ ('explicitlist:int:list:default', '5'),
+ ('explicitlist:int:list', '1'),
+ ('explicitlist:int:list', '2'),
+
('bar.spam:record:default', 'eggs'),
('bar.foo:record:default', 'foo'),
('bar.foo:record', 'baz'),
@@ -184,9 +190,11 @@
formkeys = list(req.form.keys())
formkeys.sort()
- self.assertEquals(formkeys, ['alist', 'bar', 'foo', 'setrec'])
+ self.assertEquals(formkeys, ['alist', 'bar', 'explicitlist', 'foo',
+ 'setrec'])
self.assertEquals(req['alist'], [1, 2, 3, 4, 5])
+ self.assertEquals(req['explicitlist'], [1, 2, 3, 4, 5])
self.assertEquals(req['foo'], 5)
self.assertEquals(req['bar'].spam, 'eggs')