Back to index

plone3  3.1.7
test_install.py
Go to the documentation of this file.
00001 """
00002     QuickInstaller tests.
00003 """
00004 
00005 from Products.CMFTestCase import CMFTestCase
00006 CMFTestCase.installProduct('CMFQuickInstallerTool')
00007 CMFTestCase.installProduct('CMFCalendar')
00008 
00009 CMFTestCase.setupCMFSite()
00010 
00011 import unittest
00012 from zope.testing import doctest
00013 
00014 from Products.GenericSetup import EXTENSION, profile_registry
00015 from Testing.ZopeTestCase import FunctionalDocFileSuite as Suite
00016 
00017 OPTIONFLAGS = (doctest.REPORT_ONLY_FIRST_FAILURE |
00018                doctest.ELLIPSIS |
00019                doctest.NORMALIZE_WHITESPACE)
00020 
00021 profile_registry.registerProfile('test',
00022            'CMFQI test profile',
00023            'Test profile for CMFQuickInstallerTool',
00024            'profiles/test',
00025            'Products.CMFQuickInstallerTool',
00026            EXTENSION,
00027            for_=None)
00028 
00029 def test_suite():
00030     return unittest.TestSuite((
00031         Suite('actions.txt',
00032               optionflags=OPTIONFLAGS,
00033               package='Products.CMFQuickInstallerTool.tests',
00034               test_class=CMFTestCase.FunctionalTestCase),
00035         Suite('install.txt',
00036               optionflags=OPTIONFLAGS,
00037               package='Products.CMFQuickInstallerTool.tests',
00038               test_class=CMFTestCase.FunctionalTestCase),
00039         ))
00040 
00041 if __name__ == '__main__':
00042     unittest.main(defaultTest="test_suite")