[Zope3-checkins] CVS: Zope3/src/zope/tal/tests - test_sourcepos.py:1.1.2.2

Fred L. Drake, Jr. fred@zope.com
Tue, 24 Dec 2002 10:33:04 -0500


Update of /cvs-repository/Zope3/src/zope/tal/tests
In directory cvs.zope.org:/tmp/cvs-serv29114

Modified Files:
      Tag: NameGeddon-branch
	test_sourcepos.py 
Log Message:
update to current Zope 3 test style


=== Zope3/src/zope/tal/tests/test_sourcepos.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/tal/tests/test_sourcepos.py:1.1.2.1	Mon Dec 23 14:33:29 2002
+++ Zope3/src/zope/tal/tests/test_sourcepos.py	Tue Dec 24 10:33:03 2002
@@ -57,7 +57,7 @@
 
 
 
-class Tests(unittest.TestCase):
+class SourcePosTestCase(unittest.TestCase):
 
     def parse(self, eng, s, fn):
         gen = TALGenerator(expressionCompiler=eng, xml=0, source_file=fn)
@@ -66,7 +66,7 @@
         program, macros = parser.getCode()
         return program, macros
 
-    def testSourcePositions(self):
+    def test_source_positions(self):
         # Ensure source file and position are set correctly by TAL
         macros = {}
         eng = DummyEngine(macros)
@@ -87,10 +87,7 @@
 
 
 def test_suite():
-    suite = unittest.TestSuite()
-    suite.addTest(unittest.makeSuite(Tests))
-    return suite
-
+    return unittest.makeSuite(SourcePosTestCase)
 
 if __name__ == "__main__":
-    unittest.main()
+    unittest.main(defaultTest='test_suite')