diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-05-26 00:44:17 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-05-26 00:44:17 +0000 |
| commit | 08ead74d05e25f58c83712f6f8651484ddc983d0 (patch) | |
| tree | 8a14ba839615678ab1eb4510782595af2d51f4d5 /repoze/bfg/tests/test_security.py | |
| parent | 9b1876725d2268af42961e36dbccfdc990fa4dd1 (diff) | |
| download | pyramid-08ead74d05e25f58c83712f6f8651484ddc983d0.tar.gz pyramid-08ead74d05e25f58c83712f6f8651484ddc983d0.tar.bz2 pyramid-08ead74d05e25f58c83712f6f8651484ddc983d0.zip | |
Revert all work towards creating a "forbidden" API on the security policy; I'll do this work on the authchanges branch first.
Diffstat (limited to 'repoze/bfg/tests/test_security.py')
| -rw-r--r-- | repoze/bfg/tests/test_security.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/repoze/bfg/tests/test_security.py b/repoze/bfg/tests/test_security.py index b9f9624d4..03a466e7c 100644 --- a/repoze/bfg/tests/test_security.py +++ b/repoze/bfg/tests/test_security.py @@ -243,16 +243,6 @@ class TestACLSecurityPolicy(unittest.TestCase): result = policy.principals_allowed_by_permission(None, 'read') self.assertEqual(result, []) - def test_forbidden(self): - policy = self._makeOne(lambda *arg: None) - context = DummyContext() - request = DummyRequest({}) - response = policy.forbidden(context, request) - self.failUnless('401 Unauthorized' in response.app_iter[0]) - self.assertEqual(response.status, '401 Unauthorized') - self.assertEqual(len(response.headerlist), 2) - - class TestInheritingACLSecurityPolicy(unittest.TestCase): def setUp(self): cleanUp() @@ -440,15 +430,6 @@ class TestInheritingACLSecurityPolicy(unittest.TestCase): result = policy.authenticated_userid(request) self.assertEqual(result, None) - def test_forbidden(self): - policy = self._makeOne(lambda *arg: None) - context = DummyContext() - request = DummyRequest({}) - response = policy.forbidden(context, request) - self.failUnless('401 Unauthorized' in response.app_iter[0]) - self.assertEqual(response.status, '401 Unauthorized') - self.assertEqual(len(response.headerlist), 2) - class TestAllPermissionsList(unittest.TestCase): def setUp(self): cleanUp() |
