fixing up base64 encoding for python 3 back to using base64 module
This commit is contained in:
parent
73a4c83c1a
commit
abae19d273
2 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import re
|
|||
|
||||
from nose.tools import assert_raises, assert_equals, assert_not_equals
|
||||
from boto.exception import BotoServerError
|
||||
import codecs
|
||||
import base64
|
||||
from moto import mock_iam
|
||||
|
||||
|
||||
|
|
@ -220,5 +220,5 @@ def test_get_credential_report():
|
|||
while result['generate_credential_report_response']['generate_credential_report_result']['state'] != 'COMPLETE':
|
||||
result = conn.generate_credential_report()
|
||||
result = conn.get_credential_report()
|
||||
report = codecs.decode(result['get_credential_report_response']['get_credential_report_result']['content'].encode('ascii'), 'base64').decode('ascii')
|
||||
report = base64.b64decode(result['get_credential_report_response']['get_credential_report_result']['content'].encode('ascii')).decode('ascii')
|
||||
report.should.match(r'.*my-user.*')
|
||||
Loading…
Add table
Add a link
Reference in a new issue