summaryrefslogtreecommitdiff
path: root/tests/test_security.py
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2019-12-15 19:55:10 -0800
committerTheron Luhn <theron@luhn.com>2019-12-15 19:55:10 -0800
commit32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0 (patch)
tree6e9a4b0ff52843571799aa693725f22b6054662e /tests/test_security.py
parent7b74e97fd156bef6b8f347d7d38615d5bea6c967 (diff)
downloadpyramid-32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0.tar.gz
pyramid-32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0.tar.bz2
pyramid-32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0.zip
Revert "Bring back identity into permits."
This reverts commit 2e06fa414412688dc3b7e0b422b0fc0b96ec882f.
Diffstat (limited to 'tests/test_security.py')
-rw-r--r--tests/test_security.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_security.py b/tests/test_security.py
index a555fd7f6..f39e3c730 100644
--- a/tests/test_security.py
+++ b/tests/test_security.py
@@ -489,10 +489,7 @@ class TestLegacySecurityPolicy(unittest.TestCase):
_registerAuthenticationPolicy(request.registry, ['p1', 'p2'])
_registerAuthorizationPolicy(request.registry, True)
- self.assertIs(
- policy.permits(request, request.context, 'userid', 'permission'),
- True,
- )
+ self.assertTrue(policy.permits(request, request.context, 'permission'))
_TEST_HEADER = 'X-Pyramid-Test'
@@ -513,7 +510,7 @@ class DummySecurityPolicy:
def authenticated_userid(self, request):
return self.result
- def permits(self, request, context, identity, permission):
+ def permits(self, request, context, permission):
return self.result
def remember(self, request, userid, **kw):