summaryrefslogtreecommitdiff
path: root/tests/test_config/test_routes.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2019-12-23 14:14:48 -0600
committerGitHub <noreply@github.com>2019-12-23 14:14:48 -0600
commit323cfbb45e6ee4b7462bbea9dcaa4e8258dd74f6 (patch)
treec1b2565b27da44efefdab57294f78025ebad53e1 /tests/test_config/test_routes.py
parent912dc539ca793959d7465995f906279dad21ccc9 (diff)
parente46d009954e89be393d748b9e97b1202ece3eafe (diff)
downloadpyramid-323cfbb45e6ee4b7462bbea9dcaa4e8258dd74f6.tar.gz
pyramid-323cfbb45e6ee4b7462bbea9dcaa4e8258dd74f6.tar.bz2
pyramid-323cfbb45e6ee4b7462bbea9dcaa4e8258dd74f6.zip
Merge pull request #3545 from luhn/authenticated-userid
Security policy changes
Diffstat (limited to 'tests/test_config/test_routes.py')
-rw-r--r--tests/test_config/test_routes.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_config/test_routes.py b/tests/test_config/test_routes.py
index 4ff67cf66..423da5834 100644
--- a/tests/test_config/test_routes.py
+++ b/tests/test_config/test_routes.py
@@ -1,4 +1,5 @@
import unittest
+import warnings
from . import dummyfactory
from . import DummyContext
@@ -308,6 +309,16 @@ class RoutesConfiguratorMixinTests(unittest.TestCase):
else: # pragma: no cover
raise AssertionError
+ def test_add_route_effective_principals_deprecated(self):
+ config = self._makeOne(autocommit=True)
+
+ with warnings.catch_warnings(record=True) as w:
+ warnings.simplefilter('always', DeprecationWarning)
+ config.add_route('foo', '/bar', effective_principals=['any'])
+ self.assertIn(
+ 'removed the concept of principals', str(w[-1].message)
+ )
+
class DummyRequest:
subpath = ()