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
This commit is contained in:
spzala 2015-11-30 16:28:37 -08:00
parent cc0d096b25
commit 19c60b1242

View File

@ -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)