def METHOD_NAME(kb):
    """
    test wusa.installed assuming success
    """
    mock_installed = MagicMock(side_effect=[False, True])
    mock_cache = MagicMock(return_value="C:\\{}.msu".format(kb))
    with patch.dict(
        wusa.__salt__,
        {
            "wusa.is_installed": mock_installed,
            "cp.cache_file": mock_cache,
            "wusa.install": MagicMock(),
        },
    ):
        returned = wusa.installed(name=kb, source="salt://{}.msu".format(kb))
        expected = {
            "changes": {"new": True, "old": False},
            "comment": "{} was installed. ".format(kb),
            "name": kb,
            "result": True,
        }
        assert expected == returned