class_docstr: Tests for ``FolderMapView``
class_docstr_tok: ["Tests","for","``","FolderMapView","``"]
docstr: Test that a RuntimeError is raised if calling
  find() from below the top level of the foldermap.
docstr_tok: ["Test","that","a","RuntimeError","is","raised","if","calling","find","(",")","from","below","the","top","level","of","the","foldermap","."]
code: def test_find_not_top_level(self):
      """Test that a RuntimeError is raised if calling
      find() from below the top level of the foldermap."""
  
      with pytest.raises(
          RuntimeError,
          match=r"Can only call find\(\) from top level of foldermap",
      ):
          FolderMapView(FOLDERMAP)["qchem"].find("qchem")
  
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 2 for calling the TestFolderMapView obj's underlying member method code with example usage: obj.test_find_not_top_level() without return types