[Zope3-Users] testrunner layers example and classmethods

Paul Winkler pw_lists at slinkp.com
Mon Jul 10 12:32:22 EDT 2006


Hi,

I have a need to have a batch of tests that do some expensive
setup once for the whole batch.  AFAICT this is what layers are for.

One question though... Why do the examples in
zope/testing/testrunner-ex/samplelayers.py have setUp() and tearDown()
as classmethods?
Is it just an implementation detail of those tests, or something
I should be aware of when creating my own layers?

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope3-users mailing list