def _create_role_with_role_policy(
            self, role_name, assume_role_policy, role_arn):
        # Create a role using IAM client CreateRole API
        create_role_response = self._iam_client.create_role(
            RoleName=role_name, AssumeRolePolicyDocument=dict_to_string(
                assume_role_policy))

        # Create a role using IAM client AttachRolePolicy API
        self._iam_client.attach_role_policy(PolicyArn=role_arn,
                                            RoleName=role_name)

        return create_role_response
Returns all tests of DB.
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/datapipeline/createdefaultroles.py/CreateDefaultRoles._create_role_with_role_policy--crossover with--dataset/ETHPy150Open AppScale/appscale/Apps/sensor/common/constants.py/DBTestIdentifiers.all_tests