def METHOD_NAME():
    """
    Test deleting an attribute that doesn't exist from a file
    """
    with patch("os.path.exists") as exists_mock:
        expected = {
            "changes": {},
            "comment": "All attributes were already deleted.",
            "name": "/path/to/file",
            "result": True,
        }
        exists_mock.return_value = True
        list_mock = MagicMock(return_value={"other.key": "value2"})
        delete_mock = MagicMock()
        with patch.dict(
            xattr.__salt__, {"xattr.list": list_mock, "xattr.delete": delete_mock}
        ):
            out = xattr.delete("/path/to/file", ["key"])
            list_mock.assert_called_once_with("/path/to/file")
            assert not delete_mock.called
            assert out == expected