Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFTestCase.layer Namespace Reference

Classes

class  ZCML
class  CMFSite

Functions

def onsetup
def onteardown

Variables

list _deferred_setup = []
list _deferred_cleanup = []
 ZCMLLayer = ZCML
 CMFSiteLayer = CMFSite

Function Documentation

def CMFTestCase.layer.onsetup (   func)
Defers a function call to CMFSite layer setup.
   Used as a decorator.

Definition at line 45 of file layer.py.

00045 
00046 def onsetup(func):
00047     '''Defers a function call to CMFSite layer setup.
00048        Used as a decorator.
00049     '''
00050     def deferred_func(*args, **kw):
00051         _deferred_setup.append((func, args, kw))
00052     return deferred_func
00053 

Defers a function call to CMFSite layer tear down.
   Used as a decorator.

Definition at line 54 of file layer.py.

00054 
00055 def onteardown(func):
00056     '''Defers a function call to CMFSite layer tear down.
00057        Used as a decorator.
00058     '''
00059     def deferred_func(*args, **kw):
00060         _deferred_cleanup.append((func, args, kw))
00061     return deferred_func
00062 
00063 
00064 # Derive from ZopeLite layer if available
00065 try:
    from Testing.ZopeTestCase.layer import ZopeLite

Variable Documentation

Definition at line 10 of file layer.py.

Definition at line 9 of file layer.py.

Definition at line 42 of file layer.py.

Definition at line 25 of file layer.py.