Parcourir la source

Removed obsolete supports_* auth backend attributes in tests

Claude Paroz il y a 9 ans
Parent
commit
8dc3ba5ceb
1 fichiers modifiés avec 0 ajouts et 6 suppressions
  1. 0 6
      tests/auth_tests/test_auth_backends.py

+ 0 - 6
tests/auth_tests/test_auth_backends.py

@@ -456,9 +456,6 @@ class PermissionDeniedBackend(object):
     """
     Always raises PermissionDenied in `authenticate`, `has_perm` and `has_module_perms`.
     """
-    supports_object_permissions = True
-    supports_anonymous_user = True
-    supports_inactive_user = True
 
     def authenticate(self, username=None, password=None):
         raise PermissionDenied
@@ -560,9 +557,6 @@ class TypeErrorBackend(object):
     """
     Always raises TypeError.
     """
-    supports_object_permissions = True
-    supports_anonymous_user = True
-    supports_inactive_user = True
 
     def authenticate(self, username=None, password=None):
         raise TypeError