paula: removed empty dirs
[paula.git] / paula.plonepas / trunk / src / paula / plonepas / tests / test_doctests.py
blob172dff5891a1b93fa43045ba15066930855f442f
1 # paula.testing.test_doctests.py
3 # Just put a copy of this in your tests subpackage and all your modules'
4 # doctests will be found recursively.
6 # There are several globs available, have a look at paula.testing.testing.py
7 """
8 """
10 import unittest
11 import doctest
13 from Testing import ZopeTestCase as ztc
15 from paula.testing import get_test_suite, test_globs
17 from paula.plonepas.tests import plone_base as base
19 # XXX: this could be derived from __name__, but then it would not work,
20 # if being called as __main__ (see bottom) - is that needed?
21 # eventually we could then derive it from path?!
22 from config import PACKAGE_NAME
24 tests = [
25 # Demonstrate the main content types
26 ztc.ZopeDocFileSuite(
27 'README.txt', package='paula.plonepas',
28 test_class=base.PaulaFunctionalTestCase,
29 globs=test_globs,
30 optionflags= \
31 doctest.NORMALIZE_WHITESPACE | \
32 doctest.ELLIPSIS),
36 test_suite = get_test_suite(PACKAGE_NAME, tests)
38 if __name__ == '__main__':
39 unittest.main(defaultTest='test_suite')