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
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
25 # Demonstrate the main content types
27 'README.txt', package
='paula.plonepas',
28 test_class
=base
.PaulaFunctionalTestCase
,
31 doctest
.NORMALIZE_WHITESPACE | \
36 test_suite
= get_test_suite(PACKAGE_NAME
, tests
)
38 if __name__
== '__main__':
39 unittest
.main(defaultTest
='test_suite')