paula.testing: tests pass, no app dep, currently no zcml
[paula.git] / paula.testing / src / paula / testing / README.txt
blob6f69a012ecfa1f746e6b42076a33c8d7a36034ba
1 Check that all tests are found
3     >>> from paula.testing.utils import saneimport, pkgpath, recursedir
4     >>> from paula.testing.utils import ispackagedir
5     >>> from paula.testing.testing import scanfordoctest
6     >>> pkg = saneimport('paula.testing')
7     >>> path = pkgpath(pkg)
8     >>> l1 = recursedir(path,cond=ispackagedir,filefilter=scanfordoctest)
9     >>> interact( locals())
12 A sample integration test, our zcml should have been loaded
14 XXX: currently not
16 #    >>> from paula.testing.module import ISomeObjectUtility
18 #    >>> u = getUtility(ISomeObjectUtility)
19 #    >>> u.name
20 #    'some object utility'
23 Thx to jensens you can get an interactive prompt in your tests
24 (waiting to be packaged as an egg!)
26     >>> interact( locals() )