Skip to content

Commit

Permalink
Removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Nov 12, 2020
1 parent cf64241 commit 0432dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/account_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ def test_without_credentials(self):
def test_unauthorized_access(self):
try:
test_client = GreenSMS(user='username', password='password')
response = test_client.account.balance()
test_client.account.balance()
except Exception as e:
self.assertEqual(e.error, 'Authorization declined')

def test_insufficient_funds(self):
try:
test_client = GreenSMS(user='test_block_user', password='183456')
response = test_client.sms.send(
test_client.sms.send(
to=random_phone(), txt='Test Message')
except Exception as e:
self.assertEqual(e.error, 'Insufficient funds')
Expand Down
2 changes: 1 addition & 1 deletion tests/token_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_token_expiry(self):
invalid_token_client = GreenSMS(token=token_response['access_token'])
time.sleep(5)
try:
response = invalid_token_client.account.balance()
invalid_token_client.account.balance()
except Exception as e:
self.assertEqual(e.error, 'Authorization declined')

Expand Down

0 comments on commit 0432dca

Please sign in to comment.