def test_incorrect_deletion_policy_hot(self):
    tmpl = template_format.parse('\n        heat_template_version: 2013-05-23\n        parameters:\n          deletion_policy:\n            type: string\n            default: [1, 2]\n        resources:\n          AResource:\n            type: ResourceWithPropsType\n            deletion_policy: {get_param: deletion_policy}\n            properties:\n              Foo: abc\n        ')
    self.stack = stack.Stack(self.ctx, 'stack_bad_delpol', template.Template(tmpl))
    ex = self.assertRaises(exception.StackValidationFailed, self.stack.validate)
    self.assertIn('Invalid deletion policy "[1, 2]', str(ex))
def test_incorrect_deletion_policy_hot(self):
    tmpl = template_format.parse('\n        heat_template_version: 2013-05-23\n        parameters:\n          deletion_policy:\n            type: string\n            default: [1, 2]\n        resources:\n          AResource:\n            type: ResourceWithPropsType\n            deletion_policy: {get_param: deletion_policy}\n            properties:\n              Foo: abc\n        ')
    self.stack = stack.Stack(self.ctx, 'stack_bad_delpol', template.Template(tmpl))
    ex = self.assertRaises(exception.StackValidationFailed, self.stack.validate)
    self.assertIn('Invalid deletion policy "[1, 2]', str(ex))