def METHOD_NAME(pillar_value):
    with patch(
        "salt.modules.pillar.items", MagicMock(return_value=pillar_value)
    ) as pillar_items_mock:
        ret = pillarmod.obfuscate(saltenv="saltenv")
        # ensure the kwargs are passed along to pillar.items
        assert call(saltenv="saltenv") in pillar_items_mock.mock_calls
        assert ret == dict(a="<int>", b="<str>")