import unittest
from troposphere import Template
from troposphere.iot1click import PlacementTemplate, Project
[docs]class TestPlacementTemplate(unittest.TestCase):
[docs] def test_placement_template(self):
template = Template()
template.add_resource(
Project(
"BasicProject",
ProjectName="project",
Description="description",
PlacementTemplate=PlacementTemplate(
DefaultAttributes={
"Attribute": "Value",
"Foo": "Bar",
},
DeviceTemplates={
"testbutton": {
"DeviceType": "button",
},
},
),
)
)
template.to_json()