def METHOD_NAME():
    """Can a QUALITY flag that is a astropy quantity object be parsed correctly?
    This is a regression test for https://github.com/lightkurve/lightkurve/issues/804
    """
    from astropy.units.quantity import Quantity
    flags = list(TessQualityFlags.STRINGS.items())
    for key, value in flags:
        assert TessQualityFlags.decode(Quantity(key, dtype="int32"))[0] == value
    # Can we recover combinations of flags?
    assert TessQualityFlags.decode(
        Quantity(flags[5][0], dtype="int32") + Quantity(flags[7][0], dtype="int32")
    ) == [flags[5][1], flags[7][1]]
    assert TessQualityFlags.decode(
        Quantity(flags[3][0], dtype="int32")
        + Quantity(flags[4][0], dtype="int32")
        + Quantity(flags[5][0], dtype="int32")
    ) == [flags[3][1], flags[4][1], flags[5][1]]