summaryrefslogtreecommitdiff
path: root/src/zope/security/tests/test_management.py
Commit message (Collapse)AuthorAgeFilesLines
* Add ``ISystemPrincipal`` and make ``system_user`` a regular object that ↵feature/system-user-regular-objectJason Madden2018-08-201-0/+8
| | | | | | implements it This facilitates adding adapter registrations for the system user.
* Simplify _compat.py now that we only run on newer PythonsJason Madden2017-09-081-8/+6
| | | | | | | | | | | | | | | | | | - We have u'literals' so we don't need a _u() function. For the record the Emacs replacement regex was `_u(\(['"]\)\([^)]*\)\1) -> u\1\2\1`. Amazingly, I typed that right on the first try. A few things were only used in one (test) file or function, so it was better to keep the use, if any, local and out of the "public" api: - We can use io.StringIO everywhere and it's fast. It was only imported in one file anyway. - We can just import pickle. It was only imported in one file anyway. - TEXT was only used in one test function, `type(u'')` is just as clear (especially since the usual name is `text_type`). - reload was only used in one test function, so move the definition there.
* Suppress Py3k nannyisms.Tres Seaver2013-02-131-19/+19
|
* Get all tests passing (or suppressed) on Py3k.Tres Seaver2013-02-131-1/+2
|
* Py3k: remove Py3 syntax errors.Tres Seaver2013-02-131-2/+3
|
* 100% coverage for z.s.management.Tres Seaver2013-02-111-21/+66
|
* Normalize test_suite() layout.Tres Seaver2012-12-231-2/+3
|
* Normalize testcase module-scope imports: test_management.Tres Seaver2012-12-211-3/+0
|
* Made non-doctest tests fully independent of ``zope.testing``.Tres Seaver2012-12-211-5/+14
| | | | | | | Two modules, ``zope.security.checker`` and ``zope.security.management``, register cleanups with ``zope.testing`` IFF it is importable, but the tests no longer rely on it.
* Remove CVS-era Id fossils.Tres Seaver2010-06-031-2/+0
|
* Conform to repository policy.Tres Seaver2010-05-051-1/+1
|
* Raise NoInteraction when zope.security.checkPermission is called without ↵Dan Korostelev2009-03-051-1/+5
| | | | interaction being active (LP #301565).
* change system user (zope.security.management.system_user) to have a moreBenji York2008-03-051-1/+2
| | | | | presentable title
* Fixed buglet: system_user had an ugly id.Jim Fulton2007-08-141-0/+8
| | | | | Added missing test.
* Moving code to satellite.Christian Theune2007-05-031-0/+123