

def test_present_when_trail_exists(self):
    self.conn.get_trail_status.return_value = status_ret
    self.conn.create_trail.return_value = trail_ret
    self.conn.describe_trails.return_value = {
        'trailList': [trail_ret],
    }
    with patch.dict(funcs, {
        'boto_iam.get_account_id': MagicMock(return_value='1234'),
    }):
        result = salt_states['boto_cloudtrail.present']('trail present', Name=trail_ret['Name'], S3BucketName=trail_ret['S3BucketName'], LoggingEnabled=False)
    result.assertTrue(result['result'])
    self.assertEqual(result['changes'], {
        
    })

dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_cloudtrail_test.py BotoCloudTrailTestCase.test_present_when_trail_exists/VarMisuse@102/169 `self`->`result`