From 8115dd2d1b0b6b89a8ceba50d8a7edc309f49e52 Mon Sep 17 00:00:00 2001 From: Ivan Dromigny Date: Wed, 5 Feb 2020 12:03:33 +0100 Subject: [PATCH] Add test --- tests/test_cognitoidp/test_cognitoidp.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_cognitoidp/test_cognitoidp.py b/tests/test_cognitoidp/test_cognitoidp.py index 6a13683f0..27a6841f4 100644 --- a/tests/test_cognitoidp/test_cognitoidp.py +++ b/tests/test_cognitoidp/test_cognitoidp.py @@ -958,6 +958,15 @@ def test_list_users(): result["Users"].should.have.length_of(1) result["Users"][0]["Username"].should.equal(username) + username_bis = str(uuid.uuid4()) + conn.admin_create_user( + UserPoolId=user_pool_id, Username=username_bis, + UserAttributes=[{'Name': 'phone_number', 'Value': '+33666666666'}] + ) + result = conn.list_users(UserPoolId=user_pool_id, Filter='phone_number="+33666666666') + result["Users"].should.have.length_of(1) + result["Users"][0]["Username"].should.equal(username_bis) + @mock_cognitoidp def test_list_users_returns_limit_items():