Skip to content

Commit

Permalink
Error in timestamp comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHuot committed Jul 3, 2019
1 parent 76d8d34 commit 19d111d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/openid/connect/core/grant_types/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_finalize_id_token(self):
self.assertEqual(token["id_token"], "eyJ.body.signature")
id_token = self.mock_validator.finalize_id_token.call_args[0][0]
self.assertEqual(id_token['aud'], 'abcdef')
self.assertGreaterEqual(id_token['iat'], int(time.time()))
self.assertGreaterEqual(int(time.time()), id_token['iat'])

def test_finalize_id_token_with_nonce(self):
token = self.grant.add_id_token(self.token, "token_handler_mock", self.request, "my_nonce")
Expand Down

0 comments on commit 19d111d

Please sign in to comment.