def test_reattach_detached_volume(self):
        # Create the volume we'll detach.
        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())
            ))
Implement a 'safe' version of ForeignKey._get_colspec() that
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/testtools/_blockdevice.py/IBlockDeviceAPITestsMixin.test_reattach_detached_volume--crossover with--dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/alembic/autogenerate/render.py/_fk_colspec