+ if not basename + ".env" in env_files:
+ heat_template_missing_env.append(filename)
+
+ msg = (
+ "Mismatched template and environment file pairs detected. "
+ + "Environment files with no matching template: {} ".format(
+ env_files_missing_template
+ )
+ + "Heat templates with no matching environment file: {}".format(
+ heat_template_missing_env
+ )
+ )
+
+ assert not (env_files_missing_template or heat_template_missing_env), msg