def test_absent_with_failure(self):
        self.conn.get_trail_status.return_value = status_ret
        self.conn.delete_trail.side_effect = ClientError(error_content, 'delete_trail')
        result = salt_states['boto_cloudtrail.absent']('test', trail_ret['Name'])
        self.assertFalse(result['result'])
        self.assertTrue('An error occurred' in result['comment'])
dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_cloudtrail_test.py/BotoCloudTrailTestCase.test_absent_with_failure/original