class_docstr: Tests for ``FolderMapView``
class_docstr_tok: ["Tests","for","``","FolderMapView","``"]
docstr: Test that a ValueError is raised for an invalid data_name.
docstr_tok: ["Test","that","a","ValueError","is","raised","for","an","invalid","data_name","."]
code: def test_find_invalid_data_name(self):
      """Test that a ValueError is raised for an invalid data_name."""
      with pytest.raises(
          ValueError, match="No datasets with data name: 'foo'"
      ):
          FolderMapView(FOLDERMAP).find("foo")
  
file_path: pennylane/tests/data/data_manager/test_foldermap.py
imports: import re
  import pytest
  from pennylane.data.data_manager import DEFAULT, FULL, DataPath
  from pennylane.data.data_manager.foldermap import Description, FolderMapView
label_desc: Use image node_id 3 for calling the TestFolderMapView obj's underlying member method code with example usage: obj.test_find_invalid_data_name() without return types