diff options
Diffstat (limited to 'tests/auth_tests/test_context_processors.py')
| -rw-r--r-- | tests/auth_tests/test_context_processors.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/auth_tests/test_context_processors.py b/tests/auth_tests/test_context_processors.py index d9cd679a6e..281ea744d8 100644 --- a/tests/auth_tests/test_context_processors.py +++ b/tests/auth_tests/test_context_processors.py @@ -10,14 +10,10 @@ from .settings import AUTH_MIDDLEWARE, AUTH_TEMPLATES class MockUser: def has_module_perms(self, perm): - if perm == 'mockapp': - return True - return False + return perm == 'mockapp' def has_perm(self, perm): - if perm == 'mockapp.someperm': - return True - return False + return perm == 'mockapp.someperm' class PermWrapperTests(SimpleTestCase): |
