Back to index

plone3  3.1.7
Functions | Variables
CMFPlone.tests.test_functional Namespace Reference

Functions

def list_doctests
def test_suite

Variables

list UNITTESTS = ['messages.txt', 'mails.txt']
tuple OPTIONFLAGS

Detailed Description

    CMFPlone functional doctests.  This module collects all *.txt
    files in the tests directory and runs them.

    See also ``test_doctests.py``.

Function Documentation

Definition at line 22 of file test_functional.py.

00022 
00023 def list_doctests():
00024     home = package_home(GLOBALS)
00025     return [filename for filename in
00026             glob.glob(os.path.sep.join([home, '*.txt']))
00027             if os.path.basename(filename) not in UNITTESTS]

Here is the caller graph for this function:

Definition at line 28 of file test_functional.py.

00028 
00029 def test_suite():
00030     filenames = list_doctests()
00031 
00032     suites = [Suite(os.path.basename(filename),
00033                optionflags=OPTIONFLAGS,
00034                package='Products.CMFPlone.tests',
00035                test_class=PloneTestCase.FunctionalTestCase)
00036               for filename in filenames]
00037 
00038     return unittest.TestSuite(suites)
00039 

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 (doctest.ELLIPSIS |
00002                doctest.NORMALIZE_WHITESPACE)

Definition at line 19 of file test_functional.py.

list CMFPlone.tests.test_functional.UNITTESTS = ['messages.txt', 'mails.txt']

Definition at line 17 of file test_functional.py.