summaryrefslogtreecommitdiff
path: root/tests/test_predicates.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-12 20:49:35 -0600
committerMichael Merickel <michael@merickel.org>2020-01-12 20:49:35 -0600
commit791730715832038c1666683e37fef8bb67830045 (patch)
tree423b5ef973f239d8565d5e68ed91ecd17ae7b1b8 /tests/test_predicates.py
parent1395359d653df5507146a44ccab6f0e2ab85ac65 (diff)
downloadpyramid-791730715832038c1666683e37fef8bb67830045.tar.gz
pyramid-791730715832038c1666683e37fef8bb67830045.tar.bz2
pyramid-791730715832038c1666683e37fef8bb67830045.zip
move doc references from pyramid.security to pyramid.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'))