def test_attach_destroyed_volume(self):
        volume = self._destroyed_volume()
        exception = self.assertRaises(
            UnknownVolume,
            self.api.attach_volume, volume.blockdevice_id,
            attach_to=self.this_node,
        )
        self.assertEqual(exception.args, (volume.blockdevice_id,))
Generate an email change token to email an existing user.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/testtools/_blockdevice.py/IBlockDeviceAPITestsMixin.test_attach_destroyed_volume--crossover with--dataset/ETHPy150Open hack4impact/flask-base/app/models/user.py/User.generate_email_change_token