#NEWLINE# def test_get_default_price_id_item_not_first( self ) : #NEWLINE# #INDENT# items = [ { #NEWLINE# #INDENT# 'itemCategory' : { #NEWLINE# #INDENT# 'categoryCode' : 'unknown' , #NEWLINE# 'id' : 325 , #NEWLINE# #UNINDENT# } , #NEWLINE# 'keyName' : 'UNKNOWN' , #NEWLINE# 'prices' : [ { #NEWLINE# #INDENT# 'accountRestrictions' : [ ] , #NEWLINE# 'currentPriceFlag' : '' , #NEWLINE# 'hourlyRecurringFee' : '10.0' , #NEWLINE# 'id' : 1245172 , #NEWLINE# 'recurringFee' : '1.0' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ] #NEWLINE# ex = self . assertRaises ( SoftLayer . SoftLayerError , managers . hardware . _get_default_price_id , self , 'unknown' , True , None ) #NEWLINE# self . assertEqual ( "Could not find valid price for 'unknown' option" , str ( ex ) )