I am writing a test suite based on David Convent's DIYPloneStyle v2.1.4.
I have the following:
class TestUninstall(TagCloudTestCase):
def afterSetUp(self):
self.qitool = getattr(self.portal, 'portal_quickinstaller')
self.qitool.uninstallProducts(products=[PROJECTNAME])
def testProductUninstalled(self):
"""test if the product was uninstalled"""
self.failIf(self.qitool.isProductInstalled(PROJECTNAME))
and I am getting the following error:
Error in test testProductUninstalled
(Products.TagCloud.tests.testSetup.TestUninstall)
Traceback (most recent call last):
File
"C:\Zope\2.9.6\Zope\lib\python\Testing\ZopeTestCase\profiler.py", line
86, in __call__
self.setUp()
File
"C:\Zope\2.9.6\Zope\lib\python\Testing\ZopeTestCase\PortalTestCase.py",
line 62, in setUp
self.afterSetUp()
File "C:\Zope-Instance\Products\TagCloud\tests\testSetup.py", line
72, in afterSetUp
self.qitool.uninstallProducts(products=[PROJECTNAME])
File
"C:\Zope-Instance\Products\CMFQuickInstallerTool\QuickInstallerTool.py",
line 510, in uninstallProducts
prod.uninstall(cascade=cascade, reinstall=reinstall)
File
"C:\Zope-Instance\Products\CMFQuickInstallerTool\InstalledProduct.py",
line 285, in uninstall
self._cascadeRemove(cascade)
File
"C:\Zope-Instance\Products\CMFQuickInstallerTool\InstalledProduct.py",
line 317, in _cascadeRemove
delObjects(portal, self.portalobjects)
File "C:\Zope-Instance\Products\CMFQuickInstallerTool\utils.py", line
19, in delObjects
cont.manage_delObjects(delid)
File "C:\Zope-Instance\Products\CMFPlone\Portal.py", line 143, in
manage_delObjects
raise Unauthorized, (
Unauthorized: Do not have permissions to remove this object
any idea of what's going on?
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers