[Zope-Coders] cAccessControl tests?
Shane Hathaway
shane at zope.com
Wed Oct 22 10:51:09 EDT 2003
On Tue, 21 Oct 2003, Chris McDonough wrote:
> Are there any tests written explicitly for the stuff defined in
> cAccessControl? The tests in AccessControl.tests are all over the map,
> and while all of them sort of test some part of stuff that comes out of
> cAccessControl, there are really no explicit tests AFAICT.
Actually, testZopeSecurityPolicy and testPermissionRole were written for
the purpose of verifying that cAccessControl works like its Python
counterparts. They contain a lot more tests than you might think: each
assertion is really another test, but it would have been burdensome to
write every test as a separate method. They test all edge cases I could
think of.
If you change the import statements at the top of the two test modules,
they will be exactly what you're looking for. ;-)
Shane
More information about the Zope-Coders
mailing list