

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'])
    result.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/VarMisuse@50/84 `self`->`result`