[Zope3-dev] Re: SVN: zope.testing/branches/stub-testSetUp_in_layer/src/zope/testing/testrunner Implement layer.testSetUp and layer.testTearDown support

Florent Guillaume fg at nuxeo.com
Sat Jun 17 15:49:03 EDT 2006


Stuart Bishop wrote:
> Log message for revision 68689:
> +    def testSetUp(self):
> +        """A layer may define a setup method to be called before each
> +        individual test.
> +        """
> +        for layer in reversed(self.layers):
> +            if hasattr(layer, 'testSetUp'):
> +                layer.testSetUp()

Ah cool, pretty useful thanks.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope3-dev mailing list