def METHOD_NAME(toas):
    mp = maskParameter("test2", key="freq", key_value=[1400, 1430])
    assert mp.key_value == [1400 * u.MHz, 1430 * u.MHz]
    select_toas = mp.select_toa_mask(toas)
    assert len(select_toas) > 0
    raw_selection = np.where(
        (toas.table["freq"] <= 1430 * u.MHz) * (toas.table["freq"] >= 1400 * u.MHz)
    )
    assert np.all(select_toas == raw_selection[0])
    mp_str = maskParameter("test2", key="freq", key_value=["1400", "2000"])
    assert mp_str.key_value == [1400 * u.MHz, 2000 * u.MHz]
    mp_switch = maskParameter("test2", key="freq", key_value=[2000, 1400])
    assert mp_switch.key_value == [1400 * u.MHz, 2000 * u.MHz]
    mp_quantity = maskParameter(
        "test2", key="freq", key_value=[2000 * u.MHz, 1400 * u.MHz]
    )
    assert mp_quantity.key_value == [1400 * u.MHz, 2000 * u.MHz]
    with pytest.raises(ValueError):
        mp_wrong_keyvalue = maskParameter("test2", key="freq", key_value=[1400])