#NEWLINE# def test_repeated_inst_types_should_raise_api_error( self ) : #NEWLINE# #INDENT# 'Ensures that instance duplicates raises ApiError' #NEWLINE# new_name = ( self . name + 'dup' ) #NEWLINE# instance_types . create ( new_name , 256 , 1 , 120 , ( self . flavorid + 1 ) ) #NEWLINE# instance_types . destroy ( new_name ) #NEWLINE# self . assertRaises ( exception . ApiError , instance_types . create , new_name , 256 , 1 , 120 , self . flavorid )