summaryrefslogtreecommitdiff
path: root/src/zope/security/tests/test_simplepolicies.py
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2021-08-30 10:21:35 +0200
committerMichael Howitz <mh@gocept.com>2021-08-30 10:21:35 +0200
commit31dc25752f7eeacf128299f721b9d0f488732cc7 (patch)
tree78b046e108863ab7b8eb09ac1afec7696962ab97 /src/zope/security/tests/test_simplepolicies.py
parenta30909b918595d41936b3bf3d549be2becd99f1d (diff)
downloadzope-security-31dc25752f7eeacf128299f721b9d0f488732cc7.tar.gz
Lint the code.
Add support for Python 3.9.
Diffstat (limited to 'src/zope/security/tests/test_simplepolicies.py')
-rw-r--r--src/zope/security/tests/test_simplepolicies.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zope/security/tests/test_simplepolicies.py b/src/zope/security/tests/test_simplepolicies.py
index ce5c483..fcbc8de 100644
--- a/src/zope/security/tests/test_simplepolicies.py
+++ b/src/zope/security/tests/test_simplepolicies.py
@@ -35,7 +35,7 @@ class ConformsToIInteraction(object):
class ParanoidSecurityPolicyTests(unittest.TestCase,
ConformsToIInteraction,
- ):
+ ):
def _getTargetClass(self):
from zope.security.simplepolicies import ParanoidSecurityPolicy
@@ -87,6 +87,7 @@ class ParanoidSecurityPolicyTests(unittest.TestCase,
def test_checkPermission_w_non_public_only_system_user(self):
from zope.security._definitions import system_user
+
class Participation(object):
interaction = None
principal = system_user
@@ -111,6 +112,7 @@ class ParanoidSecurityPolicyTests(unittest.TestCase,
self.assertTrue(policy.checkPermission(None, None))
self.assertTrue(policy.checkPermission(self, self))
+
class PermissiveSecurityPolicyTests(unittest.TestCase,
ConformsToIInteraction):