Changeset 3096 in products
- Timestamp:
- Apr 8, 2011 11:06:09 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/tests/base.py
r2983 r3096 60 60 61 61 class TestErase(TestCase): 62 # we use here nested layer for not to make an impact on 63 # the rest test cases, this test case check uninstall procedure 64 # thus it has to uninstall package which will be required to 65 # be installed for other test cases 66 class layer(PloneSiteLayer): 67 @classmethod 68 def setUp(cls): 69 app = ztc.app() 70 portal = app.plone 71 72 # elevate permissions 73 user = portal.getWrappedOwner() 74 newSecurityManager(None, user) 75 76 tool = getToolByName(portal, 'portal_quickinstaller') 77 if tool.isProductInstalled(PRODUCT): 78 tool.uninstallProducts([PRODUCT,]) 79 80 # drop elevated perms 81 noSecurityManager() 82 83 transaction.commit() 84 ztc.close(app) 85 62 """Test case class used for uninstalling tests 63 """
Note: See TracChangeset
for help on using the changeset viewer.