[Zope-dev] Functional testing of export/import?

Paul Winkler pw_lists@slinkp.com
Tue, 29 Jul 2003 15:01:56 -0400


On Mon, Jul 28, 2003 at 02:49:33PM -0400, Casey Duncan wrote:
> You can usually commit a subtransaction to get a _p_jar and oid (I think) set. 
> You can still abort this at the end of the test to clean up.

yep, this seems to work very nicely! Thanks Casey!

def setUp(self):
   ...
   get_transaction().commit(1)
   ...


def tearDown(self):
   ...
   get_transaction().abort(1)
   ...

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's EXTRA YELLOW BLOWER CHEESEMONGER!
(random hero from isometric.spaceninja.com)