Пример #1
0
    def test_must_return_location(self):

        data = {
            "Fn::Transform": {
                "Name": "AWS::Include",
                "Parameters": {
                    "Location": "s3://bucket/swagger.yaml"
                }
            }
        }

        expected = "s3://bucket/swagger.yaml"
        result = parse_aws_include_transform(data)

        self.assertEquals(result, expected)
Пример #2
0
    def test_must_return_location(self):

        data = {
            "Fn::Transform": {
                "Name": "AWS::Include",
                "Parameters": {
                    "Location": "s3://bucket/swagger.yaml"
                }
            }
        }

        expected = "s3://bucket/swagger.yaml"
        result = parse_aws_include_transform(data)

        self.assertEquals(result, expected)
Пример #3
0
 def test_invalid_aws_include_data(self, data):
     result = parse_aws_include_transform(data)
     self.assertIsNone(result)
Пример #4
0
 def test_invalid_aws_include_data(self, data):
     result = parse_aws_include_transform(data)
     self.assertIsNone(result)