Skip to content

Commit

Permalink
Another simple assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Lavin committed Sep 8, 2011
1 parent d2e1c38 commit f281994
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lastfm_auth/tests/backend.py
Expand Up @@ -106,6 +106,8 @@ def test_authenticate_existing_user(self):
response = lastfm_user_response()
result = LastfmBackend().authenticate(response=response, lastfm=True)
self.assertEqual(result, user)
if hasattr(result, 'is_new'):
self.assertFalse(result.is_new)

def test_authenticate_non_existing_user(self):
"""Authenticate a new user creating that user."""
Expand Down

0 comments on commit f281994

Please sign in to comment.