'Tests the get_volume function.'

def test_get_volume(self):

    volume_id = str(uuid.uuid4())
    my_volume = mock.MagicMock()
    self.cinder_client.volumes.get.return_value = my_volume
    self.assertEqual(my_volume, self.cinder_plugin.get_volume(volume_id))
    self.cinder_client.volumes.get.assert_called_once_with(volume_id)
