X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ice_validator%2Ftests%2Ftest_vm_type_resource_id.py;h=beb67458c0bfbd8a8b829f83f667789bbec19943;hb=60d5ad7d00eadd6395eca186e6fa76a43df3c6cf;hp=39a11ef3970112c2ca7edd31b86b0f113ab63bee;hpb=f5edc06be0d8bedeb0904b348ba5e3e67c74f186;p=vvp%2Fvalidation-scripts.git diff --git a/ice_validator/tests/test_vm_type_resource_id.py b/ice_validator/tests/test_vm_type_resource_id.py index 39a11ef..beb6745 100644 --- a/ice_validator/tests/test_vm_type_resource_id.py +++ b/ice_validator/tests/test_vm_type_resource_id.py @@ -68,6 +68,8 @@ def test_vm_type_resource_id(heat_template): for rid in h.resources: lower_rid = rid.lower() for vm_type, lower_vm_type in vm_types.items(): - if lower_rid.startswith(lower_vm_type) and not rid.startswith(vm_type): - bad[rid] = vm_type + if (lower_rid.startswith(lower_vm_type) + and not rid.startswith(vm_type)): + bad[rid] = vm_type assert not bad, 'resource_id which do not match their vm-type %s' % bad +