summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auth_tests/test_decorators.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auth_tests/test_decorators.py b/tests/auth_tests/test_decorators.py
index ff1b1f52a2..61c1962a74 100644
--- a/tests/auth_tests/test_decorators.py
+++ b/tests/auth_tests/test_decorators.py
@@ -76,6 +76,16 @@ class PermissionsRequiredDecoratorTest(TestCase):
resp = a_view(request)
self.assertEqual(resp.status_code, 200)
+ def test_many_permissions_in_set_pass(self):
+
+ @permission_required({'auth.add_customuser', 'auth.change_customuser'})
+ def a_view(request):
+ return HttpResponse()
+ request = self.factory.get('/rand')
+ request.user = self.user
+ resp = a_view(request)
+ self.assertEqual(resp.status_code, 200)
+
def test_single_permission_pass(self):
@permission_required('auth.add_customuser')