Back to index

plone3  3.1.7
Public Member Functions
plone.app.contentrules.tests.test_configuration.TestContentrulesGSLayer Class Reference
Inheritance diagram for plone.app.contentrules.tests.test_configuration.TestContentrulesGSLayer:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentrules.tests.test_configuration.TestContentrulesGSLayer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown

Detailed Description

Definition at line 41 of file test_configuration.py.


Member Function Documentation

Definition at line 44 of file test_configuration.py.

00044 
00045     def setUp(cls):
00046         
00047         fiveconfigure.debug_mode = True
00048         zcml.load_string(zcml_string)
00049         fiveconfigure.debug_mode = False
00050         
00051         app = ZopeTestCase.app()
00052         portal = app.plone
00053         
00054         portal_setup = portal.portal_setup
00055         portal_setup.runAllImportStepsFromProfile('profile-plone.app.contentrules:testing')
00056         
00057         commit()
00058         ZopeTestCase.close(app)

Definition at line 60 of file test_configuration.py.

00060 
00061     def tearDown(cls):
00062         app = ZopeTestCase.app()
00063         portal = app.plone
00064         
00065         storage = getUtility(IRuleStorage, context=portal)
00066         for key in list(storage.keys()):
00067             del storage[key]
00068         
00069         commit()
00070         ZopeTestCase.close(app)


The documentation for this class was generated from the following file: