Re: [Zope] Uninstalling a product in a ZopeTestCase

2005-08-19 Thread Dieter Maurer
Marco Bizzarri wrote at 2005-8-19 10:49 +0200: You may look how the "refresh Product" function uninstalls a product. You find the code in "App.RefreshFuncs.performRefresh". -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/li

[Zope] Uninstalling a product in a ZopeTestCase

2005-08-19 Thread Marco Bizzarri
Hi all. I'm trying to write a ZopeTestCase where I can check if the import of a missing module is catch or no. I would therefore test something like this: def testImportIsCaught(self): import sys oo_path = filter(lambda x: 'program' in x, sys.path) sys.path.remove(o