From 19c60b12425a2c873649e83e9027ed45856a3b72 Mon Sep 17 00:00:00 2001 From: spzala Date: Mon, 30 Nov 2015 16:28:37 -0800 Subject: [PATCH] Fix a broken test Changes made in tosca_single_instance_wordpress_with_local_abspath_import template to change imports path broke this test as it uses it for URL based testing. Change-Id: I7c2cd41a65d6c8c8cd26c2e483ee93e53b6a514e --- toscaparser/tests/test_toscatpl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toscaparser/tests/test_toscatpl.py b/toscaparser/tests/test_toscatpl.py index 83261caf..4372a83d 100644 --- a/toscaparser/tests/test_toscatpl.py +++ b/toscaparser/tests/test_toscatpl.py @@ -412,9 +412,9 @@ class ToscaTemplateTest(TestCase): 'import.yaml') self.assertRaises(exception.ValidationError, ToscaTemplate, tosca_tpl, None, False) - err_msg = (_('Absolute file name "/toscaparser/tests/data/custom_types' - '/wordpress.yaml" cannot be used in a URL-based input ' - 'template "%(tpl)s".') + err_msg = (_('Absolute file name "/tmp/tosca-parser/toscaparser/tests' + '/data/custom_types/wordpress.yaml" cannot be used in a ' + 'URL-based input template "%(tpl)s".') % {'tpl': tosca_tpl}) exception.ExceptionCollector.assertExceptionMessage(ImportError, err_msg)