You can base DemoStorage on another storage. This could be simple with
ZTC, haven't tried in a while. See ZopeLite.sandbox() and sandbox.py.
You may be able to get away with minor mods to the base classes, e.g.
overriding the _app() method of Sandboxed/Functional.
On 27.05.2008, at 23:22, Martin Aspeli wrote:
Is it possible to create a fast "snapshot" with DemoStorage e.g. in
a ZopeTestCase layer, and then have the tear-down after each test
revert to this state? Doing the full setup (creating a new Plone
site, populating it) between each test run is prohibitively expensive!
Stefan H. Holek
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org