[Checkins] SVN: bluebream/website/docs/v1.0/howto/testingpersistent.rst import zope.testing.module
Baiju M
baiju.m.mail at gmail.com
Sat Mar 6 00:06:08 EST 2010
Log message for revision 109697:
import zope.testing.module
Changed:
U bluebream/website/docs/v1.0/howto/testingpersistent.rst
-=-
Modified: bluebream/website/docs/v1.0/howto/testingpersistent.rst
===================================================================
--- bluebream/website/docs/v1.0/howto/testingpersistent.rst 2010-03-06 04:45:21 UTC (rev 109696)
+++ bluebream/website/docs/v1.0/howto/testingpersistent.rst 2010-03-06 05:06:08 UTC (rev 109697)
@@ -43,8 +43,10 @@
Now open the ``tests.py`` and add two keyword arguments to
``z3c.testsetup.register_all_tests`` function named ``setup`` and
``teardown``. The values of those keyword arguments could be
-``module.setUp`` and ``module.tearDown`` respectively as given here::
+``zope.testing.module.setUp`` and ``zope.testing.module.tearDown``
+respectively as given here::
+ from zope.testing import module
test_suite = z3c.testsetup.register_all_tests('testp2.main', setup=module.setUp, teardown=module.tearDown)
A better method would be to create your own ``setUp`` and
More information about the checkins
mailing list