def test_stack_name_invalid_type(self):
    stack_names = [{'bad': 123}, ['no', 'lists']]
    for stack_name in stack_names:
        ex = self.assertRaises(exception.StackValidationFailed, stack.Stack, self.ctx, stack_name, self.tmpl)
        self.assertIn(('Invalid stack name %s, must be a string' % stack_name), str(ex))
def test_stack_name_invalid_type(self):
    stack_names = [{'bad': 123}, ['no', 'lists']]
    for stack_name in stack_names:
        ex = self.assertRaises(exception.StackValidationFailed, stack.Stack, self.ctx, stack_name, self.tmpl)
        self.assertIn(('Invalid stack name %s, must be a string' % stack_name), str(ex))