[Zope3-dev] Test Layers

Jim Fulton jim at zope.com
Tue Oct 17 07:57:42 EDT 2006


Chris Withers wrote:
> Hi All,
> 
> Am I right in assuming that there aren't any good narrative docs for 
> test layers?

This is obviously in the eye of the beholder.  I'm sure the people
who created narratives tried to do a good job. Perhaps you can do better.

...

> Now, related to this, say I have content objects X and Y, which are 
> expensive to set up. I have LayerX which sets up a sample content object 
> X, and LayerY which does the same for content object Y. This is fine for 
> tests which need one or other content type, but how do I write tests 
> which need both?

You create a layer that extends both.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list