PloneTestCase
Category: Development tools
—
Other products by this author
Current release: PloneTestCase 0.9.7
Released Dec 4, 2007 — tested with Plone 3.0, Plone 2.5, Plone 2.1, Plone 2.0
Compatible with Plone versions 2.0, 2.1, 2.5, and 3.0.
Experimental releases
There are no experimental releases available at the moment.
Project Description
- Project resources
The PloneTestCase 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
setupPloneSiteto create a Plone portal in the test db. - The class
PloneTestCaseof 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_policy,default_products,default_base_profile,default_extension_profiles,default_user, anddefault_password. - The constant
PLONE21which evaluates to true for Plone versions >= 2.1. - The constant
PLONE25which evaluates to true for Plone versions >= 2.5. - The constant
PLONE30which evaluates to true for Plone versions >= 3.0. - The module
utilsfrom the ZopeTestCase package.
Tutorial
PloneTestCase Tutorial presented at the Plone Conference 2004.