'Test that HOT get_resource creates dependencies.'

def test_hot_ref(self):

    tmpl = template.Template({'heat_template_version': '2013-05-23', 'resources': {'foo': {'type': 'GenericResourceType'}, 'bar': {'type': 'ResourceWithPropsType', 'properties': {'Foo': {'get_resource': 'foo'}}}}})
    stack = parser.Stack(utils.dummy_context(), 'test', tmpl)
    res = stack['bar']
    res.add_explicit_dependencies(self.deps)
    graph = self.deps.graph()
    self.assertIn(res, graph)
    self.assertIn(stack['foo'], graph[res])
