def test_that_when_checking_if_a_function_exists_and_boto3_returns_an_error_the_function_exists_method_returns_error(self):
        self.conn.list_functions.side_effect = ClientError(error_content, 'list_functions')
        func_exists_result = boto_lambda.function_exists(FunctionName='myfunc', **conn_parameters)

        self.assertEqual(func_exists_result.get('error', {}).get('message'), error_message.format('list_functions'))
Tests checking lambda function existence when boto returns an error
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/boto_lambda_test.py/BotoLambdaFunctionTestCase.test_that_when_checking_if_a_function_exists_and_boto3_returns_an_error_the_function_exists_method_returns_error