#NEWLINE# def test_node_template_objectstorage_with_invalid_scalar_unit( self ) : #NEWLINE# #INDENT# tpl_snippet = '\n        node_templates:\n          server:\n            type: tosca.nodes.ObjectStorage\n            properties:\n              name: test\n              maxsize: -1\n        ' #NEWLINE# expectedmessage = _ ( '"-1" is not a valid scalar-unit.' ) #NEWLINE# err = self . assertRaises ( ValueError , ( lambda : self . _single_node_template_content_test ( tpl_snippet ) ) ) #NEWLINE# self . assertEqual ( expectedmessage , err . __str__ ( ) )