Re: [Zope3-Users] Persistent subclasses in tests

2006-07-23 Thread Darryl Cousins
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_s

Re: [Zope3-Users] Persistent subclasses in tests

2006-07-23 Thread Gary Poster
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 ___ Zope3-users ma

[Zope3-Users] Persistent subclasses in tests

2006-07-23 Thread Darryl Cousins
Hi, I've have a problem with the following and I hope someone can shed some light for me, I can't figure out what I am missing:: >>> from ZODB.tests.util import DB >>> import transaction >>> db = DB() >>> conn = db.open() >>> root = conn.root() >>> from persistent import