def METHOD_NAME(kb):
    """
    test wusa.installed when the kb is already installed
    """
    mock_installed = MagicMock(return_value=True)
    with patch.dict(wusa.__salt__, {"wusa.is_installed": mock_installed}):
        returned = wusa.installed(name=kb, source="salt://{}.msu".format(kb))
        expected = {
            "changes": {},
            "comment": "{} already installed".format(kb),
            "name": kb,
            "result": True,
        }
        assert expected == returned