

def test_absent_when_trail_exists(self):
    self.conn.get_trail_status.return_value = status_ret
    result = salt_states['boto_cloudtrail.absent']('test', trail_ret['Name'])
    self.assertTrue(result['result'])
    result.assertEqual(result['changes']['new']['trail'], None)

dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_cloudtrail_test.py BotoCloudTrailTestCase.test_absent_when_trail_exists/VarMisuse@45/75 `self`->`result`