def METHOD_NAME(ver_cmp_ret, old_ver, test_data):
    """
    Test for item show
    """
    exp_cmd = ["pcs", "resource"]
    if old_ver:
        exp_cmd.extend(["show", "itemid"])
    else:
        exp_cmd.extend(["config", "itemid"])
    mock_cmd = MagicMock()
    patch_salt = patch.dict(
        pcs.__salt__,
        {
            "cmd.run_all": mock_cmd,
            "pkg.version_cmp": MagicMock(return_value=ver_cmp_ret),
        },
    )
    with patch_salt:
        pcs.item_show("resource", "itemid")
    assert mock_cmd.call_args_list[0][0][0] == exp_cmd