Skip to content

Commit

Permalink
Update Test for test_exchange_success_binary_code
Browse files Browse the repository at this point in the history
Use self.assertIsNotNone for not None check.

resolves: googleapis#446
  • Loading branch information
happyspace committed Mar 1, 2016
1 parent ca8fdc4 commit 2ee6be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ def test_exchange_success_binary_code(self):
http = HttpMockSequence([({'status': '200'}, _to_bytes(payload))])
credentials = self.flow.step2_exchange(binary_code, http=http)
self.assertEqual(access_token, credentials.access_token)
self.assertNotEqual(None, credentials.token_expiry)
self.assertIsNotNone(credentials.token_expiry)
self.assertEqual(refresh_token, credentials.refresh_token)
self.assertEqual(revoke_uri, credentials.revoke_uri)
self.assertEqual(set(['foo']), credentials.scopes)
Expand Down

0 comments on commit 2ee6be0

Please sign in to comment.