Skip to content

Commit

Permalink
adding some comments to teh login test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNoelk committed Apr 7, 2018
1 parent 7422254 commit e76112e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v1/accounts/tests/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def setUp(self):
self.jwt_decode_handler = api_settings.JWT_DECODE_HANDLER

def test_obtain_authtoken_success(self):
""" Try and login and confirm that the login was successful """
resp = self.client.post(
'/api/v1/accounts/obtain-auth-token/',
{
Expand All @@ -27,6 +28,7 @@ def test_obtain_authtoken_success(self):
self.assertTrue(decoded_token.get('username') == 'testuser1')

def test_obtain_authtoken_wrong_password(self):
""" Try and login and confirm that the login was unsuccessful """
resp = self.client.post(
'/api/v1/accounts/obtain-auth-token/',
{
Expand Down

0 comments on commit e76112e

Please sign in to comment.