'Test exception is thrown when we can\'t call space-list.'

def test_space_list_fails(self):

    ctxt = context.get_admin_context()
    extra_specs = {}
    type_ref = volume_types.create(ctxt, 'hgst-1', extra_specs)
    volume = {'id': '1', 'name': 'volume1', 'display_name': '', 'volume_type_id': type_ref['id'], 'size': 10, 'provider_id': 'volume10'}
    self.extended = {'name': '', 'size': '0', 'storageserver': ''}
    self._fail_space_list = True
    self.assertRaises(exception.VolumeDriverException, self.driver.extend_volume, volume, 12)
