Ticket #19050: customuser.diff

File customuser.diff, 1.1 KB (added by Ivan Virabyan, 12 years ago)

skip tests when custom user is used

  • django/contrib/auth/tests/handlers.py

    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  
    22
    33from django.contrib.auth.handlers.modwsgi import check_password, groups_for_user
    44from django.contrib.auth.models import User, Group
     5from django.contrib.auth.tests.utils import skipIfCustomUser
    56from django.test import TransactionTestCase
    67
    78
    class ModWsgiHandlerTestCase(TransactionTestCase):  
    1718        group = Group.objects.create(name='test_group')
    1819        user1.groups.add(group)
    1920
     21    @skipIfCustomUser
    2022    def test_check_password(self):
    2123        """
    2224        Verify that check_password returns the correct values as per
    class ModWsgiHandlerTestCase(TransactionTestCase):  
    3234        # Valid user with incorrect password
    3335        self.assertFalse(check_password({}, 'test', 'incorrect'))
    3436
     37    @skipIfCustomUser
    3538    def test_groups_for_user(self):
    3639        """
    3740        Check that groups_for_user returns correct values as per
Back to Top