Пример #1
0
def test_interpolated():
    foo = Resource("aws_security_group", "sg", name="sg")

    assert foo.name == "sg"
    assert foo.interpolated("name") == "${aws_security_group.sg.name}"

    # call .name again to ensure ._frozen is reset correctly and we can still mutate the original
    assert foo.name == "sg"
Пример #2
0
def test_interpolated():
    foo = Resource('aws_security_group', 'sg', name='sg')

    assert foo.name == 'sg'
    assert foo.interpolated('name') == '${aws_security_group.sg.name}'

    # call .name again to ensure ._frozen is reset correctly and we can still mutate the original
    assert foo.name == 'sg'