#NEWLINE# def test_get_package_id_by_type_fails_for_nonexistent_package_type( self ) : #NEWLINE# #INDENT# mock = self . set_mock ( 'SoftLayer_Product_Package' , 'getAllObjects' ) #NEWLINE# mock . return_value = [ ] #NEWLINE# self . assertRaises ( ValueError , self . ordering . get_package_id_by_type , 'STRAWBERRY_FLAVORED_SERVERS' )