Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release > by-pkgid > 0dd60f1ef2504b7eec4fbf97d10b1015

zope-CMFTestCase-0.9.7-2mdv2008.1.noarch.rpm

Description:

CMFTestCase is a thin layer on top of the ZopeTestCase package. It has
been developed to simplify testing of CMF-based applications and
products.

The CMFTestCase package provides:

- The function 'installProduct' to install a Zope product into the
test environment.

- The function 'installPackage' to install a Python package registered
via five:registerPackage into the test environment. Requires Zope
2.10.4 or higher.

- The function 'setupCMFSite' to create a CMF portal in the test db.
Note: 'setupCMFSite' accepts an optional 'products' argument, which
allows you to specify a list of products that will be added to the
portal. Product installation is performed via the canonical
'Extensions.Install.install' function. Since 0.8.2 you can also pass
an 'extension_profiles' argument to import GS extension profiles.

- The class 'CMFTestCase' of which to derive your test cases.

- The class 'FunctionalTestCase' of which to derive your test cases
for functional unit testing.

- The classes 'Sandboxed' and 'Functional' to mix-in with your own
test cases.

- The constants 'portal_name', 'portal_owner', 'default_products',
'default_base_profile', 'default_extension_profiles',
'default_user', and 'default_password'.

- The constant 'CMF15' which evaluates to true for CMF
versions >= 1.5.

- The constant 'CMF16' which evaluates to true for CMF
versions >= 1.6.

- The constant 'CMF20' which evaluates to true for CMF
versions >= 2.0.

- The constant 'CMF21' which evaluates to true for CMF
versions >= 2.1.

- The module 'utils' which contains all utility functions from the
ZopeTestCase package.

Sources packages:

Other version of this rpm: