def test_get_profile_name_accrole_resolve_alias_do_not_include_paths(self):
     "Testing the acc-role, with alias resolution, and not including full role path"
     creds = GimmeAWSCreds()
     naming_data = {'account': '123456789012', 'role': 'administrator', 'path': '/administrator/'}
     role = RoleSet(idp='arn:aws:iam::123456789012:saml-provider/my-okta-provider',
                    role='arn:aws:iam::123456789012:role/administrator/administrator',
                    friendly_account_name='Account: my-org-master (123456789012)',
                    friendly_role_name='administrator/administrator')
     cred_profile = 'acc-role'
     resolve_alias = 'True'
     include_path = 'False'
     self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role), "my-org-master-administrator")
 def test_get_profile_name_else(self):
     "testing else statement in get_profile_name"
     creds = GimmeAWSCreds()
     naming_data = {'account': '123456789012', 'role': 'administrator', 'path': '/some/long/extended/path/'}
     role = RoleSet(idp='arn:aws:iam::123456789012:saml-provider/my-okta-provider',
                    role='arn:aws:iam::123456789012:role/some/long/extended/path/administrator',
                    friendly_account_name='Account: my-org-master (123456789012)',
                    friendly_role_name='administrator/administrator')
     cred_profile = 'foo'
     resolve_alias = 'False'
     include_path = 'True'
     self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
                      'foo')