def test_geohash_grid_aggregation(): a = aggs.GeohashGrid(**{"field": "centroid", "precision": 3}) assert { "geohash_grid": { "field": "centroid", "precision": 3 } } == a.to_dict()
def test_geohash_grid_aggregation(): a = aggs.GeohashGrid(**{'field': 'centroid', 'precision': 3}) assert { 'geohash_grid': { 'field': 'centroid', 'precision': 3 } } == a.to_dict()