<s> from awscli . testutils import unittest <EOL> from awscli . customizations . emr . createdefaultroles import assume_role_policy <EOL> class TestDefaultRoles ( unittest . TestCase ) : <EOL> service_principal = "<STR_LIT>" <EOL> expected_result = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ <EOL> { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } , <EOL> "<STR_LIT>" : "<STR_LIT>" <EOL> } <EOL> ] <EOL> } <EOL> def test_assume_role_policy ( self ) : <EOL> result = assume_role_policy ( self . service_principal ) <EOL> self . assertEqual ( result , self . expected_result ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
