'Tests the get_volume_snapshot function.'

def test_get_snapshot(self):

    snapshot_id = str(uuid.uuid4())
    my_snapshot = mock.MagicMock()
    self.cinder_client.volume_snapshots.get.return_value = my_snapshot
    self.assertEqual(my_snapshot, self.cinder_plugin.get_volume_snapshot(snapshot_id))
    self.cinder_client.volume_snapshots.get.assert_called_once_with(snapshot_id)
