'Test that error raised for malformed removal_policies.'

def test_invalid_removal_policies_nolist(self):

    tmp = copy.deepcopy(template)
    grp_props = tmp['resources']['group1']['properties']
    grp_props['removal_policies'] = 'notallowed'
    stack = utils.parse_stack(tmp)
    snip = stack.t.resource_definitions(stack)['group1']
    resg = resource_group.ResourceGroup('test', snip, stack)
    exc = self.assertRaises(exception.StackValidationFailed, resg.validate)
    errstr = 'removal_policies:    "\'notallowed\'"    is    not    a    list'
    self.assertIn(errstr, six.text_type(exc))
