Chris McDonough
2012-10-07 1273d56ee5c038f447dce0525844cd3ea6c15e4d
refs
author Chris McDonough <chrism@plope.com>
Sunday, October 7, 2012 08:03 +0200
committer Chris McDonough <chrism@plope.com>
Sunday, October 7, 2012 08:03 +0200
commit1273d56ee5c038f447dce0525844cd3ea6c15e4d
tree 11ab8f12072353e7e324e66bda5914c78cd5c1ea tree | zip | gz
parent 7d8e08ecff656fd0f525a0fd655cdf20915f5fa8 view | diff
- The Configurator ``testing_securitypolicy`` method now returns the policy
object it creates.

- The Configurator ``testing_securitypolicy`` method accepts two new
arguments: ``remember_result`` and ``forget_result``. If supplied, these
values influence the result of the policy's ``remember`` and ``forget``
methods, respectively.

- The DummySecurityPolicy created by ``testing_securitypolicy`` now sets a
``forgotten`` value on the policy (the value ``True``) when its ``forget``
method is called.

- The DummySecurityPolicy created by ``testing_securitypolicy`` now sets a
``remembered`` value on the policy, which is the value of the ``principal``
argument it's called with when its ``remember`` method is called.
4 files modified
84 ■■■■■ changed files
CHANGES.txt 19 ●●●●● diff | view | raw | blame | history
pyramid/config/testing.py 26 ●●●●● diff | view | raw | blame | history
pyramid/testing.py 15 ●●●● diff | view | raw | blame | history
pyramid/tests/test_config/test_testing.py 24 ●●●●● diff | view | raw | blame | history