diff options
| author | Theron Luhn <theron@luhn.com> | 2019-12-14 22:46:51 -0800 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2019-12-14 22:46:51 -0800 |
| commit | dc4241edd6d433224f62aece153741f7ea63569a (patch) | |
| tree | 366fcbeb260ea91d46029472699b7bb4a669ce7c /tests/test_security.py | |
| parent | 2e06fa414412688dc3b7e0b422b0fc0b96ec882f (diff) | |
| download | pyramid-dc4241edd6d433224f62aece153741f7ea63569a.tar.gz pyramid-dc4241edd6d433224f62aece153741f7ea63569a.tar.bz2 pyramid-dc4241edd6d433224f62aece153741f7ea63569a.zip | |
Fix coverage.
Diffstat (limited to 'tests/test_security.py')
| -rw-r--r-- | tests/test_security.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_security.py b/tests/test_security.py index 3896e008d..a555fd7f6 100644 --- a/tests/test_security.py +++ b/tests/test_security.py @@ -165,6 +165,15 @@ class TestPrincipalsAllowedByPermission(unittest.TestCase): result = self._callFUT(context, 'view') self.assertEqual(result, [Everyone]) + def test_with_authorization_policy(self): + from pyramid.threadlocal import get_current_registry + + registry = get_current_registry() + _registerAuthorizationPolicy(registry, 'yo') + context = DummyContext() + result = self._callFUT(context, 'view') + self.assertEqual(result, 'yo') + class TestRemember(unittest.TestCase): def setUp(self): |
