[Checkins] SVN: zope.component/tseaver-test_cleanup/ Begin converting doctests to unittests.
Tres Seaver
cvs-admin at zope.org
Sun Jun 17 21:36:41 UTC 2012
Log message for revision 126900:
Begin converting doctests to unittests.
Changed:
_U zope.component/tseaver-test_cleanup/
A zope.component/tseaver-test_cleanup/src/zope/component/tests/test___init__.py
U zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py
-=-
Added: zope.component/tseaver-test_cleanup/src/zope/component/tests/test___init__.py
===================================================================
--- zope.component/tseaver-test_cleanup/src/zope/component/tests/test___init__.py (rev 0)
+++ zope.component/tseaver-test_cleanup/src/zope/component/tests/test___init__.py 2012-06-17 21:36:38 UTC (rev 126900)
@@ -0,0 +1,35 @@
+##############################################################################
+#
+# Copyright (c) 2012 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+import unittest
+
+class PackageAPITests(unittest.TestCase):
+
+ def test_module_conforms_to_IComponentArchitecture(self):
+ from zope.interface.verify import verifyObject
+ from zope.component.interfaces import IComponentArchitecture
+ import zope.component as zc
+ verifyObject(IComponentArchitecture, zc)
+
+ def test_module_conforms_to_IComponentRegistrationConvenience(self):
+ from zope.interface.verify import verifyObject
+ from zope.component.interfaces import IComponentRegistrationConvenience
+ import zope.component as zc
+ verifyObject(IComponentRegistrationConvenience, zc)
+
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite(PackageAPITests),
+ ))
Modified: zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py
===================================================================
--- zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py 2012-06-17 21:36:31 UTC (rev 126899)
+++ zope.component/tseaver-test_cleanup/src/zope/component/tests/test_doctests.py 2012-06-17 21:36:38 UTC (rev 126900)
@@ -166,14 +166,6 @@
return self.sitemanager
-def testInterfaces():
- """Ensure that the component architecture API is provided by
- `zope.component`.
-
- >>> verifyObject(IComponentArchitecture, component)
- True
- """
-
def test_getGlobalSiteManager():
"""One of the most important functions is to get the global site manager.
More information about the checkins
mailing list