For tests that required using two test permission, like
the tests for .restrict_queryset_by_accesses().
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Use the new AddRemove View for the Role's group and
permissions views as well as the Group's role views.
Convert the API to use viewsets.
Add more tests.
Add role created and edited events.
Add event subscription support to roles.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Extract test views and user code into their own separate test case
mixins. Append TestCase to test case mixins with base test code
to differentiate them from test mixins with reusable view calls.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>