'Test that error raised for unknown resource type.'

def test_invalid_res_type(self):

    tmp = copy.deepcopy(template)
    grp_props = tmp['resources']['group1']['properties']
    grp_props['resource_def']['type'] = 'idontexist'
    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)
    exp_msg = 'The    Resource    Type    (idontexist)    could    not    be    found.'
    self.assertIn(exp_msg, six.text_type(exc))
