Files
mayan-edms/mayan/apps/acls/tests/test_classes.py
Roberto Rosario 0d6462831a Deregister ephimeral models from ModelPermissions
Explictly delete the ephimeral models from ModelPermission
registry to avoid them being lookedup in a subsequent tests
where they don't exist.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-06-10 01:09:37 -04:00

13 lines
370 B
Python

from __future__ import absolute_import, unicode_literals
from mayan.apps.common.tests import BaseTestCase
from ..classes import ModelPermission
class ModelPermissionTestCase(BaseTestCase):
def test_model_permission_get_classes_as_content_type(self):
self.assertNotEqual(
ModelPermission.get_classes(as_content_type=True).count(), 0
)