'A volume that has been detached can be re-attached.'

def test_reattach_detached_volume(self):

    volume = self.api.create_volume(dataset_id=uuid4(), size=self.minimum_allocatable_size)
    attached_volume = self.api.attach_volume(volume.blockdevice_id, attach_to=self.this_node)
    self.api.detach_volume(volume.blockdevice_id)
    reattached_volume = self.api.attach_volume(volume.blockdevice_id, attach_to=self.this_node)
    self.repeat_until_consistent((lambda : self.assertEqual((attached_volume, [attached_volume]), (reattached_volume, self.api.list_volumes()))))
