#NEWLINE# def test_node_template_requirements_with_wrong_node_keyname( self ) : #NEWLINE# #INDENT# "Node template requirements keyname 'node' given as 'nodes'." #NEWLINE# tpl_snippet = '\n        node_templates:\n          mysql_database:\n            type: tosca.nodes.Database\n            requirements:\n              - host:\n                  nodes: mysql_dbms\n\n        ' #NEWLINE# expectedmessage = _ ( '"requirements" of template "mysql_database" contains unknown field "nodes". Refer to the definition to verify valid values.' ) #NEWLINE# err = self . assertRaises ( exception . UnknownFieldError , ( lambda : self . _single_node_template_content_test ( tpl_snippet ) ) ) #NEWLINE# self . assertEqual ( expectedmessage , err . __str__ ( ) )