zope.security.testing¶
Testing support code.
This module provides some helper/stub objects for setting up interactions.
-
class
zope.security.testing.Principal(id, title=None, description='', groups=None)[source]¶ Bases:
objectA trivial implementation of
zope.security.interfaces.IPrincipal.
-
class
zope.security.testing.Participation(principal)[source]¶ Bases:
objectA trivial implementation of
zope.security.interfaces.IParticipation.
-
zope.security.testing.addCheckerPublic()[source]¶ Add the CheckerPublic permission as
zope.Public.
-
zope.security.testing.create_interaction(principal_id, **kw)[source]¶ Create a new interaction for the given principal ID, make it the
current interaction, and return thePrincipalobject.