def METHOD_NAME(kb):
    """
    test wusa.install when it fails to cache the file
    """
    mock_installed = MagicMock(return_value=False)
    mock_cache = MagicMock(return_value="")
    with patch.dict(
        wusa.__salt__,
        {"wusa.is_installed": mock_installed, "cp.cache_file": mock_cache},
    ):
        returned = wusa.installed(name=kb, source="salt://{}.msu".format(kb))
        expected = {
            "changes": {},
            "comment": 'Unable to cache salt://{}.msu from saltenv "base"'.format(kb),
            "name": kb,
            "result": False,
        }
        assert expected == returned