class_docstr: Tests for ``FolderMapView``
class_docstr_tok: ["Tests","for","``","FolderMapView","``"]
docstr: Test that ``getitem`` raises a KeyError if the ``__default``
  key is passed.
docstr_tok: ["Test","that","``","getitem","``","raises","a","KeyError","if","the","``","__default","``","key","is","passed","."]
code: def test_getitem_private_key(self, key, init):
      """Test that ``getitem`` raises a KeyError if the ``__default``
      key is passed."""
  
      with pytest.raises(KeyError):
          _ = FolderMapView(init)[key]
  
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 8 for calling the TestFolderMapView obj's underlying member method code with example usage: obj.test_getitem_private_key(key, init) without return types