diff options
| author | Tim Graham <timograham@gmail.com> | 2018-01-03 13:24:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-03 13:24:02 -0500 |
| commit | acc8dd4142ec81def9a73507120c0262ba6b1264 (patch) | |
| tree | b23afef0de9b19a50e96fd8706c763386419d79d /tests/auth_tests/test_context_processors.py | |
| parent | d79cf1e9e2887aa12567c8f27e384195253cb847 (diff) | |
Fixed #28984 -- Made assorted code simplifications.
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): |
