[CMF-checkins] CVS: CMF - test_all.py:1.1 test_Document.py:1.4 test_AllCMFDefault.py:NONE
Jeffrey Shell
jeffrey@digicool.com
Sat, 19 May 2001 15:01:43 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/tests
In directory korak.digicool.com:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFDefault/tests
Modified Files:
test_Document.py
Added Files:
test_all.py
Removed Files:
test_AllCMFDefault.py
Log Message:
Updated test_Document to be more uniform and added some extra elements to its structured text test string. Renamed test_AllCMFDefault to test_all.
--- Added File test_all.py in package CMF ---
import unittest
from Products.CMFDefault.tests import test_Document
from Products.CMFDefault.tests import test_MetadataTool
from Products.CMFDefault.tests import test_utils
def main():
"""\
Combines all of the test suites in this package into a single
large test.
"""
suite = unittest.TestSuite((
test_Document.test_suite(),
test_MetadataTool.test_suite(),
test_utils.test_suite(),
))
unittest.TextTestRunner().run(suite)
if __name__ == '__main__':
main()
--- Updated File test_Document.py in package CMF --
--- test_Document.py 2001/03/30 16:45:28 1.3
+++ test_Document.py 2001/05/19 19:01:43 1.4
@@ -32,16 +32,17 @@
Description: A document by me
Contributors: foo@bar.com baz@bam.net no@yes.maybe
-This is the header
+This is the header and it supercedes the title
Body body body body body
body body body.
-'''
-class TestCase(unittest.TestCase):
+ o What does this do
+
+ o if it happens to you?
+'''
- def setUp(self): pass
- def tearDown(self): pass
+class DocumentTests(unittest.TestCase):
def test_Empty(self):
d = Document('foo')
@@ -117,7 +118,7 @@
def test_suite():
- return unittest.makeSuite(TestCase)
+ return unittest.makeSuite(DocumentTests)
def main():
unittest.TextTestRunner().run(test_suite())
--- Removed file test_AllCMFDefault.py from package CMF --