summaryrefslogtreecommitdiff
path: root/tests/test_predicates.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-17 16:09:27 -0600
committerGitHub <noreply@github.com>2020-01-17 16:09:27 -0600
commita71df99b57e88788cf9ce3a78fc005f309033bbd (patch)
tree56668260a48bef6b194a735de947ee59fd9429f6 /tests/test_predicates.py
parent03d3bbd2791918a844da49eb4449b4953b83a31b (diff)
parent592cadd9c20ce410d9ab7b9a748ec59dff001f65 (diff)
downloadpyramid-a71df99b57e88788cf9ce3a78fc005f309033bbd.tar.gz
pyramid-a71df99b57e88788cf9ce3a78fc005f309033bbd.tar.bz2
pyramid-a71df99b57e88788cf9ce3a78fc005f309033bbd.zip
Merge pull request #3563 from mmerickel/move-acl-security-to-authorization
Move acl security to authorization
Diffstat (limited to 'tests/test_predicates.py')
-rw-r--r--tests/test_predicates.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_predicates.py b/tests/test_predicates.py
index b0ee65bcf..533667d75 100644
--- a/tests/test_predicates.py
+++ b/tests/test_predicates.py
@@ -454,7 +454,7 @@ class Test_EffectivePrincipalsPredicate(unittest.TestCase):
def _testing_authn_policy(self, userid, groupids=tuple()):
from pyramid.interfaces import IAuthenticationPolicy, ISecurityPolicy
- from pyramid.security import Everyone, Authenticated
+ from pyramid.authorization import Everyone, Authenticated
from pyramid.security import LegacySecurityPolicy
class DummyPolicy:
@@ -500,7 +500,7 @@ class Test_EffectivePrincipalsPredicate(unittest.TestCase):
self.assertTrue(inst(context, request))
def test_it_call_authentication_policy_provides_superset_implicit(self):
- from pyramid.security import Authenticated
+ from pyramid.authorization import Authenticated
request = testing.DummyRequest()
self._testing_authn_policy('fred', groupids=('verna', 'bambi'))