def test_that_when_creating_an_event_source_mapping_fails_the_create_event_source_mapping_method_returns_error(self):
        self.conn.create_event_source_mapping.side_effect = ClientError(error_content, 'create_event_source_mapping')
        result = boto_lambda.create_event_source_mapping(
                      EventSourceArn=event_source_mapping_ret['EventSourceArn'],
                      FunctionName=event_source_mapping_ret['FunctionArn'],
                      StartingPosition='LATEST',
                      **conn_parameters)
        self.assertEqual(result.get('error', {}).get('message'),
                         error_message.format('create_event_source_mapping'))
tests False mapping not created.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/boto_lambda_test.py/BotoLambdaEventSourceMappingTestCase.test_that_when_creating_an_event_source_mapping_fails_the_create_event_source_mapping_method_returns_error