diff options
| author | Gerhard Schmidt <estartu@augusta.de> | 2018-12-26 09:51:20 +0100 |
|---|---|---|
| committer | Gerhard Schmidt <estartu@augusta.de> | 2018-12-26 09:51:20 +0100 |
| commit | 2d091dccd5b0b19a966983e4b54609b474548a69 (patch) | |
| tree | 3de0e430e8c48672bd05fb9859855c6031311432 /tests | |
| parent | 42e2a54dff7f879a270f7746afb1e180b387bd3a (diff) | |
| download | pyramid-2d091dccd5b0b19a966983e4b54609b474548a69.tar.gz pyramid-2d091dccd5b0b19a966983e4b54609b474548a69.tar.bz2 pyramid-2d091dccd5b0b19a966983e4b54609b474548a69.zip | |
added unittest for the not permissive part
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_testing.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index 5e11c2487..5b3ad0f22 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -63,6 +63,13 @@ class TestDummySecurityPolicy(unittest.TestCase): result = policy.principals_allowed_by_permission(None, None) self.assertEqual(result, [Everyone, Authenticated, 'user', 'group1']) + def test_principals_allowed_by_permission_not_permissive(self): + policy = self._makeOne('user', ('group1',)) + policy.permissive = False + + result = policy.principals_allowed_by_permission(None, None) + self.assertEqual(result, []) + def test_forget(self): policy = self._makeOne() self.assertEqual(policy.forget(None), []) |
