def METHOD_NAME():
    splatalogue.core.Splatalogue.query_lines_async(min_frequency=114 * u.GHz,
                                                   max_frequency=116 * u.GHz,
                                                   top20='top20',
                                                   get_query_payload=True)
    with pytest.raises(ValueError) as exc:
        splatalogue.core.Splatalogue.query_lines_async(
            min_frequency=114 * u.GHz, max_frequency=116 * u.GHz,
            top20='invalid', get_query_payload=True)
    assert exc.value.args[0] == "Top20 is not one of the allowed values"