'Select a suitable pool based on specified extra specs.'

def test_get_storage_pool_with_extra_specs(self):

    vol = VOLUME.copy()
    vol['volume_type_id'] = 1
    pool_type = 'thick'
    selected_pool = {'storage_pool': 'StoragePoolA', 'storage_pool_id': 99, 'dedup': False, 'thin': False}
    conf = {'pool.select_storage_pool.return_value': selected_pool}
    self.driver.vmem_mg = self.setup_mock_concerto(m_conf=conf)
    self.driver._get_violin_extra_spec = mock.Mock(return_value='StoragePoolA')
    result = self.driver._get_storage_pool(vol, 100, pool_type, 'create_lun')
    self.assertEqual(result, selected_pool)
