#NEWLINE# def test_node_template_objectstorage_without_required_property( self ) : #NEWLINE# #INDENT# tpl_snippet = '\n        node_templates:\n          server:\n            type: tosca.nodes.ObjectStorage\n            properties:\n              maxsize: 1 GB\n        ' #NEWLINE# expectedmessage = _ ( '"properties" of template "server" is missing required field "[\'name\']".' ) #NEWLINE# err = self . assertRaises ( exception . MissingRequiredFieldError , ( lambda : self . _single_node_template_content_test ( tpl_snippet ) ) ) #NEWLINE# self . assertEqual ( tpl_snippet , err . __str__ ( ) )