diff --git a/django/contrib/auth/tests/handlers.py b/django/contrib/auth/tests/handlers.py
index 190fcee..75eeca3 100644
|
a
|
b
|
from __future__ import unicode_literals
|
| 2 | 2 | |
| 3 | 3 | from django.contrib.auth.handlers.modwsgi import check_password, groups_for_user |
| 4 | 4 | from django.contrib.auth.models import User, Group |
| | 5 | from django.contrib.auth.tests.utils import skipIfCustomUser |
| 5 | 6 | from django.test import TransactionTestCase |
| 6 | 7 | |
| 7 | 8 | |
| … |
… |
class ModWsgiHandlerTestCase(TransactionTestCase):
|
| 17 | 18 | group = Group.objects.create(name='test_group') |
| 18 | 19 | user1.groups.add(group) |
| 19 | 20 | |
| | 21 | @skipIfCustomUser |
| 20 | 22 | def test_check_password(self): |
| 21 | 23 | """ |
| 22 | 24 | Verify that check_password returns the correct values as per |
| … |
… |
class ModWsgiHandlerTestCase(TransactionTestCase):
|
| 32 | 34 | # Valid user with incorrect password |
| 33 | 35 | self.assertFalse(check_password({}, 'test', 'incorrect')) |
| 34 | 36 | |
| | 37 | @skipIfCustomUser |
| 35 | 38 | def test_groups_for_user(self): |
| 36 | 39 | """ |
| 37 | 40 | Check that groups_for_user returns correct values as per |