'Test get resources successful.'

def test_get_resources_good(self):

    t = template_format.parse('\n                                                AWSTemplateFormatVersion:    2010-09-09\n                                                Resources:\n                                                        resource1:\n                                                                Type:    AWS::EC2::Instance\n                                                                Properties:\n                                                                        property1:    value1\n                                                                Metadata:\n                                                                        foo:    bar\n                                                                DependsOn:    dummy\n                                                                DeletionPolicy:    dummy\n                                                                UpdatePolicy:\n                                                                        foo:    bar\n                                ')
    expected = {'resource1': {'Type': 'AWS::EC2::Instance', 'Properties': {'property1': 'value1'}, 'Metadata': {'foo': 'bar'}, 'DependsOn': 'dummy', 'DeletionPolicy': 'dummy', 'UpdatePolicy': {'foo': 'bar'}}}
    tmpl = template.Template(t)
    self.assertEqual(expected, tmpl[tmpl.RESOURCES])
