def vt_get_volume_type(context, vt_id):
 if (vt_id == fake_vt['id']):
  return fake_vt
 raise exception.VolumeTypeNotFound(volume_type_id=vt_id)

def vt_get_volume_type ( context , vt_id ) : if ( vt_id == fake_vt [ 'id' ] ) : return fake_vt raise exception . VolumeTypeNotFound ( volume_type_id = vt_id )
replacement for cinder .