#NEWLINE# def test_generate_create_dict_invalid_size( self ) : #NEWLINE# #INDENT# args = { #NEWLINE# #INDENT# 'size' : 'UNKNOWN_SIZE' , #NEWLINE# 'hostname' : 'unicorn' , #NEWLINE# 'domain' : 'giggles.woo' , #NEWLINE# 'location' : 'wdc01' , #NEWLINE# 'os' : 'UBUNTU_14_64' , #NEWLINE# 'port_speed' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# ex = self . assertRaises ( SoftLayer . SoftLayerError , self . hardware . _generate_create_dict , ** ex ) #NEWLINE# self . assertIn ( "Could not find valid size for: 'UNKNOWN_SIZE'" , str ( ex ) )