1 # paula.testing.tests.py
3 # You can simply copy this file to your package and adjust it to your needs
5 # pt.FunctionalDocFileSuite will load your package's ftesting.zcml and
6 # otherwise setup the same globs as pt.setUp - have a look at __init__.py
11 #from zope.testing import doctestunit
12 #from zope.component.testing import setUp
14 from paula
.testing
import get_test_suite
, SuiteGenerator
16 # XXX: this could be derived from __name__, but then it would not work,
17 # if being called as __main__ (see bottom) - is that needed?
18 # eventually we could then derive it from path?!
19 from config
import PACKAGE_NAME
21 sg
= SuiteGenerator(PACKAGE_NAME
)
24 # doctests in all submodules of the package are found by paula.testing
26 # doctests in files need to be declared
27 #doctestunit.DocFileSuite( 'README.txt',
28 # package=PACKAGE_NAME, setUp=pt.setUp, tearDown=pt.tearDown
31 # functional doctests in files, don't pass setUp/tearDown, except if you
32 # really know what you are doing...
33 #sg.FunctionalDocFileSuite('README.txt')
37 test_suite
= get_test_suite(PACKAGE_NAME
, tests
)
39 if __name__
== '__main__':
40 unittest
.main(defaultTest
='test_suite')