From 5547a917a6494a15a60a607082b27d38a25e4dc7 Mon Sep 17 00:00:00 2001 From: Mike Fuller Date: Wed, 4 Feb 2015 12:50:18 +1100 Subject: [PATCH] use should.match instead of should.contain as string is not an interable. --- tests/test_iam/test_iam.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_iam/test_iam.py b/tests/test_iam/test_iam.py index 954d11eb8..0538c5f17 100644 --- a/tests/test_iam/test_iam.py +++ b/tests/test_iam/test_iam.py @@ -1,6 +1,7 @@ from __future__ import unicode_literals import boto import sure # noqa +import re from nose.tools import assert_raises, assert_equals, assert_not_equals from boto.exception import BotoServerError @@ -220,4 +221,4 @@ def test_get_credential_report(): result = conn.generate_credential_report() result = conn.get_credential_report() report = base64.b64decode(result['get_credential_report_response']['get_credential_report_result']['content']) - report.should.contain('my-user') \ No newline at end of file + report.should.match(r'.*my-user.*') \ No newline at end of file