'If Cinder does not delete the volume within a specified amount of time,
the destroy attempt fails by raising ``TimeoutException``.'

def test_destroy_timesout(self):

    new_volume = self.api.create_volume(dataset_id=uuid4(), size=get_minimum_allocatable_size())
    expected_timeout = 8
    self.patch(self.api.cinder_volume_manager, 'delete', (lambda *args, **kwargs: None))
    time_module = FakeTime(initial_time=0)
    self.patch(self.api, '_time', time_module)
    self.patch(self.api, '_timeout', expected_timeout)
    exception = self.assertRaises(TimeoutException, self.api.destroy_volume, blockdevice_id=new_volume.blockdevice_id)
    self.assertEqual(expected_timeout, exception.elapsed_time)
    self.assertEqual(expected_timeout, time_module._current_time)
