Back to index

plone3  3.1.7
base.py
Go to the documentation of this file.
00001 """Base class for integration tests, based on ZopeTestCase and PloneTestCase.
00002 
00003 Note that importing this module has various side-effects: it registers a set of
00004 products with Zope, and it sets up a sandbox Plone site with the appropriate
00005 products installed.
00006 """
00007 
00008 from Testing import ZopeTestCase
00009 
00010 # Import PloneTestCase - this registers more products with Zope as a side effect
00011 from Products.PloneTestCase.PloneTestCase import PloneTestCase
00012 from Products.PloneTestCase.PloneTestCase import FunctionalTestCase
00013 from Products.PloneTestCase.PloneTestCase import setupPloneSite
00014 
00015 # Set up a Plone site - note that the portlets branch of CMFPlone applies
00016 # a portlets profile.
00017 setupPloneSite()
00018 
00019 class ContentRulesTestCase(PloneTestCase):
00020     """Base class for integration tests for plone.app.contentrules. This may
00021     provide specific set-up and tear-down operations, or provide convenience
00022     methods.
00023     """
00024     
00025 class ContentRulesFunctionalTestCase(FunctionalTestCase):
00026     """Base class for functional integration tests for plone.app.portlets. 
00027     This may provide specific set-up and tear-down operations, or provide 
00028     convenience methods.
00029     """