def METHOD_NAME(hdr, expected):
    """crates removes the HDUNAME setting but pyfits keeps it"""
    if backend_is("crates"):
        assert "HDUNAME" not in hdr
    else:
        assert hdr["HDUNAME"] == expected