diff options
author | 2016-07-29 12:54:07 +0000 | |
---|---|---|
committer | 2016-07-29 12:54:07 +0000 | |
commit | 47821301accde5ecc0dc90be2048f479e5857672 (patch) | |
tree | 813396de926a2d9f07bc4aa5cd1412e751f3468f /tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py | |
parent | c591b4aaf6572ae80eea35e3569b4ea860dbddac (diff) | |
parent | db33fd6014c3d746d08002c7cfd061fcdad9868f (diff) |
Merge "Add transaction subsystem definition in the use case of substitution_mappings"
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py')
-rw-r--r-- | tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py b/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py index 0f1a33e..14f2496 100644 --- a/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py +++ b/tosca2heat/tosca-parser/toscaparser/tests/test_topology_template.py @@ -27,7 +27,7 @@ class TopologyTemplateTest(TestCase): '''TOSCA template.''' self.tosca_tpl_path = os.path.join( os.path.dirname(os.path.abspath(__file__)), - "data/topology_template/subsystem.yaml") + "data/topology_template/transactionsubsystem.yaml") self.tpl = YAML_LOADER(self.tosca_tpl_path) self.topo_tpl = self.tpl.get('topology_template') self.imports = self.tpl.get('imports') @@ -157,4 +157,6 @@ class TopologyTemplateTest(TestCase): tpl_path = os.path.join( os.path.dirname(os.path.abspath(__file__)), "data/topology_template/system.yaml") - self.assertIsNotNone(ToscaTemplate(tpl_path)) + system_tosca_template = ToscaTemplate(tpl_path) + self.assertIsNotNone(system_tosca_template) + self.assertEqual(len(system_tosca_template.nested_tosca_template), 0) |