[Zope-Checkins] CVS: Zope/lib/python/StructuredText/tests - testStructuredText.py:1.6.2.1 framework.py:NONE

Tres Seaver tseaver@zope.com
Mon, 15 Oct 2001 19:09:43 -0400


Update of /cvs-repository/Zope/lib/python/StructuredText/tests
In directory cvs.zope.org:/tmp/cvs-serv14739/lib/python/StructuredText/tests

Modified Files:
      Tag: tseaver-utxfixup-branch
	testStructuredText.py 
Removed Files:
      Tag: tseaver-utxfixup-branch
	framework.py 
Log Message:


  - Remove dependencies on 'execfile( "framework.py" )' from unit tests.


=== Zope/lib/python/StructuredText/tests/testStructuredText.py 1.6 => 1.6.2.1 ===
 from StructuredText.StructuredText import HTML
 import sys, os, unittest, cStringIO
-execfile(os.path.join(sys.path[0],'framework.py'))
 from OFS import ndiff
 
 """
@@ -220,4 +219,15 @@
         self._test("xx **this is html** xx","xx <strong>this is html</strong> xx")
         
 
-framework()
+
+def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest( unittest.makeSuite( StructuredTextTests ) )
+    suite.addTest( unittest.makeSuite( BasicTests ) )
+    return suite
+
+def main():
+    unittest.TextTestRunner().run(test_suite())
+
+if __name__ == '__main__':
+    main()

=== Removed File Zope/lib/python/StructuredText/tests/framework.py ===