Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added some test guards for some recently added auth tests.

Refs #19061, #19057.
  • Loading branch information...
commit 81f5d4a1a7b955afe530d5292726b3a8a93d7038 1 parent 24b2aad
Russell Keith-Magee authored October 30, 2012
1  django/contrib/auth/tests/handlers.py
@@ -17,6 +17,7 @@ def setUp(self):
17 17
         group = Group.objects.create(name='test_group')
18 18
         user1.groups.add(group)
19 19
 
  20
+    @skipIfCustomUser
20 21
     def test_check_password(self):
21 22
         """
22 23
         Verify that check_password returns the correct values as per
2  django/contrib/auth/tests/models.py
@@ -100,11 +100,13 @@ def test_empty_username(self):
100 100
                                  'The given username must be set',
101 101
                                   User.objects.create_user, username='')
102 102
 
  103
+
103 104
 class IsActiveTestCase(TestCase):
104 105
     """
105 106
     Tests the behavior of the guaranteed is_active attribute
106 107
     """
107 108
 
  109
+    @skipIfCustomUser
108 110
     def test_builtin_user_isactive(self):
109 111
         user = User.objects.create(username='foo', email='foo@bar.com')
110 112
         # is_active is true by default

0 notes on commit 81f5d4a

Please sign in to comment.
Something went wrong with that request. Please try again.