summaryrefslogtreecommitdiff
path: root/tests/test_request.py
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2019-03-03 08:49:58 -0800
committerTheron Luhn <theron@luhn.com>2019-03-03 08:55:02 -0800
commit5abdd1d7636a8f7c5cda4c8fcf2669c3937c1186 (patch)
treebcbf0d8499152be3efb4b592657a55b179421b2a /tests/test_request.py
parent140fdbb54c467159313ede564dd3ad4077e30f20 (diff)
downloadpyramid-5abdd1d7636a8f7c5cda4c8fcf2669c3937c1186.tar.gz
pyramid-5abdd1d7636a8f7c5cda4c8fcf2669c3937c1186.tar.bz2
pyramid-5abdd1d7636a8f7c5cda4c8fcf2669c3937c1186.zip
Implement new request.has_permission.
Deleted AuthorizationAPIMixin
Diffstat (limited to 'tests/test_request.py')
-rw-r--r--tests/test_request.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_request.py b/tests/test_request.py
index 484d86e01..1a10a8509 100644
--- a/tests/test_request.py
+++ b/tests/test_request.py
@@ -1,7 +1,7 @@
import unittest
from pyramid import testing
-from pyramid.security import AuthenticationAPIMixin, AuthorizationAPIMixin
+from pyramid.security import SecurityAPIMixin, AuthenticationAPIMixin
from pyramid.util import text_, bytes_
@@ -54,7 +54,7 @@ class TestRequest(unittest.TestCase):
self.assertEqual(cls.ResponseClass, Response)
def test_implements_security_apis(self):
- apis = (AuthenticationAPIMixin, AuthorizationAPIMixin)
+ apis = (SecurityAPIMixin, AuthenticationAPIMixin)
r = self._makeOne()
self.assertTrue(isinstance(r, apis))