#NEWLINE# def test_imports_with_name_without_templates( self ) : #NEWLINE# #INDENT# tpl_snippet = '\n        imports:\n          - some_definitions:\n        ' #NEWLINE# path = 'toscaparser/tests/data/tosca_elk.yaml' #NEWLINE# errormsg = _ ( 'A template file name is not provided with import definition "some_definitions".' ) #NEWLINE# err = self . assertRaises ( exception . ValidationError , self . _imports_content_test , tpl_snippet , path , None ) #NEWLINE# self . assertEqual ( errormsg , err . __str__ ( ) )