[Zope3-checkins] CVS: Zope3/lib/python/Zope/DocumentTemplate/tests - testDT_Var.py:1.2

Barry Warsaw barry@wooz.org
Fri, 20 Dec 2002 14:35:16 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/DocumentTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv11652/lib/python/Zope/DocumentTemplate/tests

Modified Files:
	testDT_Var.py 
Log Message:
test module cleanups:

- no docstrings in test methods (convert to comments)
- whitespace normalization
- other minor cleanups


=== Zope3/lib/python/Zope/DocumentTemplate/tests/testDT_Var.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/DocumentTemplate/tests/testDT_Var.py:1.1	Tue Jun 25 11:37:17 2002
+++ Zope3/lib/python/Zope/DocumentTemplate/tests/testDT_Var.py	Fri Dec 20 14:34:45 2002
@@ -15,6 +15,9 @@
 $Id$
 """
 
+# XXX Don't normalize whitespace in this file -- the tests depend on the
+# whitespace in the triple quoted strings.
+
 import unittest
 from Zope.DocumentTemplate import String
 from DTMLTestBase import DTMLTestBase, dict, ObjectStub 
@@ -89,7 +92,7 @@
 
 
     def testRender(self):
-       "Test automatic rendering of callable obnjects"
+       # Test automatic rendering of callable objects
        class C:
           x = 1
           def y(self): return self.x * 2
@@ -118,9 +121,8 @@
 
 def test_suite():
     suite = unittest.TestSuite()
-    suite.addTest( unittest.makeSuite(TestDT_Var) )
+    suite.addTest(unittest.makeSuite(TestDT_Var))
     return suite
-
 
 
 if __name__ == '__main__':