[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore/tests - test_zdcannotatableadapter.py:1.4

Fred L. Drake, Jr. fred at zope.com
Wed Aug 20 11:30:21 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/dublincore/tests
In directory cvs.zope.org:/tmp/cvs-serv25322

Modified Files:
	test_zdcannotatableadapter.py 
Log Message:
- fix docstring
- general cleanup


=== Zope3/src/zope/app/dublincore/tests/test_zdcannotatableadapter.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/dublincore/tests/test_zdcannotatableadapter.py:1.3	Fri Jun  6 17:21:46 2003
+++ Zope3/src/zope/app/dublincore/tests/test_zdcannotatableadapter.py	Wed Aug 20 10:30:14 2003
@@ -11,14 +11,13 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""XXX short summary goes here.
-
-XXX longer description goes here.
+"""Test the Dublin Core annotations adapter.
 
 $Id$
 """
 
-from unittest import TestCase, TestSuite, main, makeSuite
+import unittest
+
 from zope.app.interfaces.annotation import IAnnotations
 from zope.app.tests.placelesssetup import PlacelessSetup
 from zope.interface import implements
@@ -28,7 +27,7 @@
     implements(IAnnotations)
 
 
-class Test(PlacelessSetup, TestCase):
+class DublinCoreAdapterTest(PlacelessSetup, unittest.TestCase):
 
     def testZDCAnnotatableAdapter(self):
 
@@ -51,9 +50,7 @@
 
 
 def test_suite():
-    return TestSuite((
-        makeSuite(Test),
-        ))
+    return unittest.makeSuite(DublinCoreAdapterTest)
 
 if __name__=='__main__':
-    main(defaultTest='test_suite')
+    unittest.main(defaultTest='test_suite')




More information about the Zope3-Checkins mailing list