[Zope3-checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP/tests - testHTTP.py:1.6
Barry Warsaw
barry@wooz.org
Fri, 20 Dec 2002 14:35:18 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP/tests
In directory cvs.zope.org:/tmp/cvs-serv11652/lib/python/Zope/Publisher/HTTP/tests
Modified Files:
testHTTP.py
Log Message:
test module cleanups:
- no docstrings in test methods (convert to comments)
- whitespace normalization
- other minor cleanups
=== Zope3/lib/python/Zope/Publisher/HTTP/tests/testHTTP.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/Publisher/HTTP/tests/testHTTP.py:1.5 Fri Jun 14 12:50:22 2002
+++ Zope3/lib/python/Zope/Publisher/HTTP/tests/testHTTP.py Fri Dec 20 14:34:47 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
import unittest
@@ -37,9 +37,9 @@
'HTTP_AUTHORIZATION': 'Should be in accessible',
'GATEWAY_INTERFACE': 'TestFooInterface/1.0',
'HTTP_OFF_THE_WALL': "Spam 'n eggs",
- 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1, UTF-8;q=0.66, UTF-16;q=0.33',
+ 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1, UTF-8;q=0.66, UTF-16;q=0.33',
}
-
+
def setUp(self):
class AppRoot:
" "
@@ -141,11 +141,8 @@
lpw = req._authUserPW()
self.assertEquals(lpw, (login, password))
-
-
def testIPresentationRequest(self):
- ''' test the IView request'''
-
+ # test the IView request
r = self._createRequest()
self.failUnless( r.getPresentationType() is None)
@@ -154,11 +151,10 @@
self.assertEqual( r.getPresentationSkin(), 'morefoo')
-
def test_suite():
loader = unittest.TestLoader()
return loader.loadTestsFromTestCase(HTTPTests)
-if __name__=='__main__':
- unittest.TextTestRunner().run( test_suite() )
+if __name__ == '__main__':
+ unittest.TextTestRunner().run( test_suite() )