def METHOD_NAME(self):
    mock_iter = mock.Mock(return_value=iter((1, 2, 3)))
    mock_dict = mock.Mock(__iter__=mock_iter)
    view = _internal.CastedView[int, int](mock_dict, mock.Mock())
    assert iter(view) is mock_iter.return_value