[Zope3-Users] Persistent subclasses in tests
Darryl Cousins
darryl at darrylcousins.net.nz
Sun Jul 23 21:46:48 EDT 2006
Hi Gary,
Thanks for that. For those who follow
tests.py::
import unittest
from zope.testing import doctest
from zope.testing import module
name = 'tfws.cart.README'
def setUp(test):
module.setUp(test, name)
def tearDown(test):
module.tearDown(test, name)
def test_suite():
return unittest.TestSuite((
doctest.DocFileSuite('README.txt',
setUp=setUp, tearDown=tearDown,
optionflags=doctest.ELLIPSIS
),
))
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
On Sun, 2006-07-23 at 20:59 -0400, Gary Poster wrote:
> On Jul 23, 2006, at 6:59 PM, Darryl Cousins wrote:
>
> > Hi,
> >
> > I've have a problem with the following and I hope someone can shed
> > some
> > light for me
> ...
>
> Yup, you need to handle a case like that specially.
>
> See zope.testing.module
>
> Gary
More information about the Zope3-users
mailing list