def METHOD_NAME(self):
    mock_cast = mock.Mock()
    view = _internal.CastedView[typing.Any, typing.Any]({}, mock_cast)
    with pytest.raises(KeyError):
        view["foo"]
    mock_cast.assert_not_called()