[Zope-ZEO] Advice

Jim Fulton jim@digicool.com
Sat, 23 Sep 2000 07:39:07 -0400


Andrew Kuchling wrote:
> 
> On Thu, Sep 21, 2000 at 03:22:59PM -0400, Chris McDonough wrote:
> >How do you define "complex object"?  Do you mean specifically without using
> >Python?
> 
> No, just something that has a very complex internal state, consisting of 45
> different states, which can be grouped into 7 over-arching phases. This is
> something complicated enough that you want it surrounded by an elaborate
> test suite so you don't inadvertently break one transition when fixing
> another.  Doing an effectively test suite for this in the Zope environment
> seems impossible.  You could write a Python object, test it from the Python
> command-line, and then write a layer of glue on top of it to turn it into a
> Product, but how do you test the glue?

There is a Zope testing/debugging framework for doing exactly that.
The only trick is that, assuming that you don't want the tests
to make persistent changes, you need to install a null transaction 
manager.

Jim

--
Jim Fulton           mailto:jim@digicool.com
Technical Director   (888) 344-4332              Python Powered!
Digital Creations    http://www.digicool.com     http://www.python.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.