'Test HOT version check.
Pass a valid HOT version to template.Template.__new__() and
validate that we get back a parsed template.'

def test_valid_hot_version(self):

    tmpl_str = 'heat_template_version:    2013-05-23'
    hot_tmpl = template_format.parse(tmpl_str)
    parsed_tmpl = template.Template(hot_tmpl)
    expected = ('heat_template_version', '2013-05-23')
    observed = parsed_tmpl.version
    self.assertEqual(expected, observed)
