CMFTestCase
Category: Development tools
—
Other products by this author
Current release: CMFTestCase 0.9.7
Released Dec 4, 2007 — tested with Plone 3.0, Plone 2.5, Plone 2.1, Plone 2.0
Compatible with CMF versions 1.4, 1.5, 1.6, 2.0, and 2.1.
Experimental releases
There are no experimental releases available at the moment.
Project Description
- Project resources
The CMFTestCase package provides:
- The function
installProductto install a Zope product into the test environment. - The function
installPackageto install a Python package registered via five:registerPackage into the test environment. Requires Zope 2.10.4 or higher. - The function
setupCMFSiteto create a CMF portal in the test db. - The class
CMFTestCaseof which to derive your test cases. - The class
FunctionalTestCaseof which to derive your test cases for functional unit testing. - The classes
SandboxedandFunctionalto mix-in with your own test cases. - The constants
portal_name,portal_owner,default_products,default_base_profile,default_extension_profiles,default_user, anddefault_password. - The constant
CMF15which evaluates to true for CMF versions >= 1.5. - The constant
CMF16which evaluates to true for CMF versions >= 1.6. - The constant
CMF20which evaluates to true for CMF versions >= 2.0. - The constant
CMF21which evaluates to true for CMF versions >= 2.1. - The module
utilsfrom the ZopeTestCase package.