diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
index a0ed4f3..3ea184a 100644
a
|
b
|
class AnonymousUser(object):
|
358 | 358 | def has_perm(self, perm): |
359 | 359 | return False |
360 | 360 | |
| 361 | def has_perms(self, perm_list): |
| 362 | return False |
| 363 | |
361 | 364 | def has_module_perms(self, module): |
362 | 365 | return False |
363 | 366 | |
diff --git a/tests/regressiontests/auth_backends/tests.py b/tests/regressiontests/auth_backends/tests.py
index 3ec2a05..045aa81 100644
a
|
b
|
except NameError:
|
4 | 4 | from sets import Set as set # Python 2.3 fallback |
5 | 5 | |
6 | 6 | __test__ = {'API_TESTS': """ |
7 | | >>> from django.contrib.auth.models import User, Group, Permission |
| 7 | >>> from django.contrib.auth.models import User, Group, Permission, AnonymousUser |
8 | 8 | >>> from django.contrib.contenttypes.models import ContentType |
9 | 9 | |
10 | 10 | # No Permissions assigned yet, should return False except for superuser |
… |
… |
True
|
69 | 69 | True |
70 | 70 | >>> user.has_perms(['auth.test3', 'auth.test_group']) |
71 | 71 | True |
| 72 | |
| 73 | # testing permissions of AnonymousUser |
| 74 | >>> user = AnonymousUser() |
| 75 | >>> user.has_perm('test') |
| 76 | False |
| 77 | >>> user.has_perms(['auth.test2', 'auth.test3']) |
| 78 | False |
72 | 79 | """} |