From 9adb7c818df7bbaf842c49b82cba8579fb7bd8a9 Mon Sep 17 00:00:00 2001 From: Ferruvich Date: Fri, 10 Aug 2018 16:07:27 +0200 Subject: [PATCH] Added extra test --- tests/test_cognitoidp/test_cognitoidp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_cognitoidp/test_cognitoidp.py b/tests/test_cognitoidp/test_cognitoidp.py index fda24146d..d1d57f307 100644 --- a/tests/test_cognitoidp/test_cognitoidp.py +++ b/tests/test_cognitoidp/test_cognitoidp.py @@ -4,8 +4,10 @@ import boto3 import json import os import uuid +import jwt from jose import jws + from moto import mock_cognitoidp import sure # noqa @@ -446,6 +448,9 @@ def authentication_flow(conn): result["AuthenticationResult"]["IdToken"].should_not.be.none result["AuthenticationResult"]["AccessToken"].should_not.be.none + jwt.decode( + result["AuthenticationResult"]["AccessToken"], verify=False + ).get(user_attribute_name, '').should.be.equal(user_attribute_value) return { "user_pool_id": user_pool_id,