Permalink
Browse files

[1.5.X] Added some test guards for some recently added auth tests.

Refs #19061, #19057.
  • Loading branch information...
1 parent 322d858 commit e784b5e594946acabe1fe41c4d4d7fdc17f4a1cb @freakboy3742 freakboy3742 committed Oct 30, 2012
Showing with 3 additions and 0 deletions.
  1. +1 −0 django/contrib/auth/tests/handlers.py
  2. +2 −0 django/contrib/auth/tests/models.py
@@ -17,6 +17,7 @@ def setUp(self):
group = Group.objects.create(name='test_group')
user1.groups.add(group)
+ @skipIfCustomUser
def test_check_password(self):
"""
Verify that check_password returns the correct values as per
@@ -100,11 +100,13 @@ def test_empty_username(self):
'The given username must be set',
User.objects.create_user, username='')
+
class IsActiveTestCase(TestCase):
"""
Tests the behavior of the guaranteed is_active attribute
"""
+ @skipIfCustomUser
def test_builtin_user_isactive(self):
user = User.objects.create(username='foo', email='foo@bar.com')
# is_active is true by default

0 comments on commit e784b5e

Please sign in to comment.