From 9c587ec6b17431888d2e66fa2e7b45c158f27d37 Mon Sep 17 00:00:00 2001 From: Ernesto Ruy Sanchez Date: Mon, 25 Jul 2016 08:59:57 -0700 Subject: [PATCH] added assert response returns Users --- tests/test_iam/test_iam.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_iam/test_iam.py b/tests/test_iam/test_iam.py index c5d92af6b..89153ff69 100644 --- a/tests/test_iam/test_iam.py +++ b/tests/test_iam/test_iam.py @@ -182,7 +182,12 @@ def test_list_users(): max_items = 10 conn = boto3.client('iam') conn.create_user(UserName='my-user') - conn.list_users(PathPrefix=path_prefix, MaxItems=max_items) + response = conn.list_users(PathPrefix=path_prefix, MaxItems=max_items) + assert_equals( + response['Users'], + [] + ) + @mock_iam() def test_create_login_profile():