diff options
Diffstat (limited to 'src/zope/security/testing.py')
-rw-r--r-- | src/zope/security/testing.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zope/security/testing.py b/src/zope/security/testing.py index bd4b889..792813f 100644 --- a/src/zope/security/testing.py +++ b/src/zope/security/testing.py @@ -37,6 +37,7 @@ rules = [ ] output_checker = renormalizing.RENormalizing(rules) + @interface.implementer(interfaces.IPrincipal) class Principal(object): """ @@ -55,8 +56,10 @@ class Principal(object): @interface.implementer(interfaces.IParticipation) class Participation(object): """ - A trivial implementation of :class:`zope.security.interfaces.IParticipation`. + A trivial implementation of + :class:`zope.security.interfaces.IParticipation`. """ + def __init__(self, principal): self.principal = principal self.interaction = None @@ -82,6 +85,7 @@ def addCheckerPublic(): return perm + def create_interaction(principal_id, **kw): """ Create a new interaction for the given principal ID, make it the |