Skip to content

Commit

Permalink
[1.5.X] Added some test guards for some recently added auth tests.
Browse files Browse the repository at this point in the history
Refs #19061, #19057.
  • Loading branch information
freakboy3742 committed Oct 30, 2012
1 parent 322d858 commit e784b5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions django/contrib/auth/tests/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions django/contrib/auth/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e784b5e

Please sign in to comment.