#NEWLINE# def test_node_template_with_wrong_interfaces_keyname( self ) : #NEWLINE# #INDENT# "Node template keyname 'interfaces' given as 'interfac'." #NEWLINE# tpl_snippet = '\n        node_templates:\n          mysql_dbms:\n            type: tosca.nodes.DBMS\n            properties:\n              root_password: aaa\n              port: 3376\n            requirements:\n              - host: server\n            interfac:\n              Standard:\n                configure: mysql_database_configure.sh\n        ' #NEWLINE# expectedmessage = _ ( 'Node template "mysql_dbms" contains unknown field "interfac". 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__ ( ) )