Back to index

plone3  3.1.7
testUtilities.py
Go to the documentation of this file.
00001 from Products.CMFCore.utils import getToolInterface
00002 from Products.CMFPlone.tests import PloneTestCase
00003 
00004 class TestUtilities(PloneTestCase.PloneTestCase):
00005     def testToolRegistration(self):
00006         from Products.CMFPlone.migrations.v3_0.alphas import registration
00007 
00008         for (tool_id, interface) in registration:
00009             self.assertEqual(getToolInterface(tool_id), interface)
00010 
00011 
00012 def test_suite():
00013     from unittest import TestSuite, makeSuite
00014     suite = TestSuite()
00015     suite.addTest(makeSuite(TestUtilities))
00016     return suite