def METHOD_NAME():
    """
    Test that query can be formatted as a string, with query attributes
    specified in the `fmt` argument being included.
    """
    dl = daily_location(
        "2016-01-01", spatial_unit=make_spatial_unit("cell"), method="last"
    )
    assert "<Query of type: LastLocation>" == format(dl)
    assert (
        "<Query of type: LastLocation, spatial_unit: CellSpatialUnit(), column_names: ['subscriber', 'location_id']>"
        == f"{dl:spatial_unit,column_names}"
    )
    with pytest.raises(
        ValueError, match="Format string contains invalid query attribute: 'foo'"
    ):
        format(dl, "query_id,foo")