'Test format of a parameter.'

def test_format_validate_parameter(self):

    t = template_format.parse((self.template % self.param))
    tmpl = template.Template(t)
    tmpl_params = cfn_param.CfnParameters(None, tmpl)
    tmpl_params.validate(validate_value=False)
    param = tmpl_params.params[self.param_name]
    param_formated = api.format_validate_parameter(param)
    self.assertEqual(self.expected, param_formated)
