Ejemplo n.º 1
0
def test_get_template_params():
    """Verify get_template_params function operation."""
    template_dict = {
        "AWSTemplateFormatVersion": "2010-09-09",
        "Description": "TestTemplate",
        "Parameters": {
            "Param1": {
                "Type": "String"
            },
            "Param2": {
                "Default": "default",
                "Type": "CommaDelimitedList"
            }
        },
        "Resources": {}
    }
    template_params = {
        "Param1": {
            "Type": "String"
        },
        "Param2": {
            "Default": "default",
            "Type": "CommaDelimitedList"
        }
    }

    assert get_template_params(template_dict) == template_params
Ejemplo n.º 2
0
 def test_get_template_params(self):
     """Verify get_template_params function operation."""
     template_dict = {
         "AWSTemplateFormatVersion": "2010-09-09",
         "Description": "TestTemplate",
         "Parameters": {
             "Param1": {
                 "Type": "String"
             },
             "Param2": {
                 "Default": "default",
                 "Type": "CommaDelimitedList"
             }
         },
         "Resources": {}
     }
     template_params = {
         "Param1": {
             "Type": "String"
         },
         "Param2": {
             "Default": "default",
             "Type": "CommaDelimitedList"
         }
     }
     self.assertEqual(get_template_params(template_dict), template_params)