#NEWLINE# def test_get_attribute_invalid_args( self ) : #NEWLINE# #INDENT# expected_msg = _ ( 'Expected arguments: "node-template-name", "attribute-name"' ) #NEWLINE# err = self . assertRaises ( ValueError , functions . get_function , None , None , { #NEWLINE# #INDENT# 'get_attribute' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIn ( expected_msg , six . text_type ( err ) ) #NEWLINE# err = self . assertRaises ( ValueError , functions . get_function , None , None , { #NEWLINE# #INDENT# 'get_attribute' : [ 'x' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIn ( expected_msg , six . text_type ( err ) ) #NEWLINE# err = self . assertRaises ( ValueError , functions . get_function , None , None , { #NEWLINE# #INDENT# 'get_attribute' : [ 'x' , 'y' , 'z' , 'k' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIn ( expected_msg , six . text_type ( self ) )