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