diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-27 08:28:45 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-27 08:28:45 +0000 |
| commit | 45d08c56ea330583a472b4d2808262a634fa99f1 (patch) | |
| tree | dab7e4abe9439cc05886bf2dac688995b3ead1b9 /repoze/bfg/tests/test_configuration.py | |
| parent | 82c9a232036b696d38b64c95787f0812d777e112 (diff) | |
| download | pyramid-45d08c56ea330583a472b4d2808262a634fa99f1.tar.gz pyramid-45d08c56ea330583a472b4d2808262a634fa99f1.tar.bz2 pyramid-45d08c56ea330583a472b4d2808262a634fa99f1.zip | |
Coverage.
Remove set_security_policies configurator API method.
Diffstat (limited to 'repoze/bfg/tests/test_configuration.py')
| -rw-r--r-- | repoze/bfg/tests/test_configuration.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/repoze/bfg/tests/test_configuration.py b/repoze/bfg/tests/test_configuration.py index ed84735b4..1185f85c8 100644 --- a/repoze/bfg/tests/test_configuration.py +++ b/repoze/bfg/tests/test_configuration.py @@ -122,6 +122,12 @@ class ConfiguratorTests(unittest.TestCase): result = config.registry.getUtility(IAuthenticationPolicy) self.assertEqual(policy, result) + def test_ctor_authorization_policy_only(self): + from zope.configuration.exceptions import ConfigurationError + policy = object() + config = self.assertRaises(ConfigurationError, + self._makeOne, authorization_policy=policy) + def test_ctor_no_root_factory(self): from repoze.bfg.interfaces import IRootFactory config = self._makeOne() @@ -2576,9 +2582,6 @@ class DummyConfigurator(object): self.package = package self.settings = settings - def hook_zca(self): - self.zca_hooked = True - def load_zcml(self, filename): self.zcml_file = filename |
