It seems that an integration test written using ZopeTestCase (and
PloneTestCase) does not support using zope.security.checkPermission().
The problem is that the interaction threadlocal isn't set up, so you get
It's easy to fix: just call Products.Five.security.newInteraction()
before the test is run.
Is this something that should go into ZopeTestCase's setUp()?
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -