Back to index

plone3  3.1.7
Functions | Variables
plone.memoize.tests Namespace Reference

Functions

def configurationSetUp
def configurationTearDown
def test_suite

Variables

 optionflags = doctest.REPORT_ONLY_FIRST_FAILURE|doctest.ELLIPSIS

Function Documentation

Definition at line 13 of file tests.py.

00013 
00014 def configurationSetUp(test):
00015     setUp()    
00016     
00017     XMLConfig('meta.zcml', zope.app.component)()
00018     XMLConfig('configure.zcml', plone.memoize)()

Here is the call graph for this function:

Definition at line 19 of file tests.py.

00019 
00020 def configurationTearDown(test):
00021     tearDown()

Here is the call graph for this function:

Definition at line 22 of file tests.py.

00022 
00023 def test_suite():
00024     try:
00025         from zope.publisher.interfaces.browser import IBrowserView, IBrowserRequest
00026     except ImportError:
00027         from zope.app.publisher.interfaces.browser import IBrowserView
00028         from zope.publisher.interfaces.browser import IBrowserRequest
00029     from zope.component import adapts
00030     from zope.component import provideAdapter
00031     from zope.interface import implements, Interface
00032 
00033     tests = (
00034         doctest.DocTestSuite('plone.memoize.compress',
00035                              setUp=configurationSetUp,
00036                              tearDown=configurationTearDown),
00037         doctest.DocFileSuite('instance.txt', 
00038                              package="plone.memoize",
00039                              setUp=configurationSetUp,
00040                              tearDown=configurationTearDown,
00041                              optionflags=optionflags,
00042                              globs=locals()),
00043         doctest.DocFileSuite('view.txt', 
00044                              package="plone.memoize",
00045                              setUp=configurationSetUp,
00046                              tearDown=configurationTearDown,
00047                              optionflags=optionflags,
00048                              globs=locals()),
00049         doctest.DocFileSuite('forever.txt', 
00050                              package="plone.memoize",
00051                              setUp=configurationSetUp,
00052                              tearDown=configurationTearDown,
00053                              optionflags=optionflags,
00054                              globs=locals()),
00055         doctest.DocFileSuite('README.txt'),
00056         doctest.DocTestSuite('plone.memoize.request',
00057                              setUp=configurationSetUp,
00058                              tearDown=configurationTearDown),
00059         doctest.DocTestSuite('plone.memoize.volatile'),
00060         doctest.DocTestSuite('plone.memoize.ram',
00061                              setUp=configurationSetUp,
00062                              tearDown=configurationTearDown),
00063         )
00064 
00065     return unittest.TestSuite(tests)
00066 

Here is the call graph for this function:


Variable Documentation

plone.memoize.tests.optionflags = doctest.REPORT_ONLY_FIRST_FAILURE|doctest.ELLIPSIS

Definition at line 8 of file tests.py.