#NEWLINE# def test_gets_iam_account_id( self ) : #NEWLINE# #INDENT# mock_iam_client = Mock ( ) #NEWLINE# user_info = { #NEWLINE# #INDENT# 'User' : { #NEWLINE# #INDENT# 'Arn' : 'foo:bar:baz:qux:1234' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# mock_iam_client . get_user . return_value = user_info #NEWLINE# account_id = utils . get_account_id ( user_info ) #NEWLINE# self . assertEqual ( account_id , '1234' )