There is a test for that, already, in grok.tests.security.permissions. It's clearly tested and it works.
There is a test for that, already, in grok.tests. security. permissions. It's clearly tested and it works.