'Test case for specified changePercent.
When changePercent is specified, it translates to pyrax arguments
\'change\' and \'is_percent\'.'

def test_webhook_change_percent(self):

    template = copy.deepcopy(self.policy_template)
    template['Resources']['my_policy']['Properties']['changePercent'] = 10
    del template['Resources']['my_policy']['Properties']['change']
    self._setup_test_stack(template)
    self.assertEqual({'name': '+10    on    webhook', 'scaling_group': 'my-group-id', 'change': 10, 'is_percent': True, 'cooldown': 0, 'policy_type': 'webhook'}, self.fake_auto_scale.policies['0'].kwargs)
