def test_facet_range(self):
        FacetTest.index_data([
                {'id': 1, 'value': 1},
                {'id': 2, 'value': 1},
                {'id': 3, 'value': 1},
                {'id': 4, 'value': 2},
                {'id': 5, 'value': 2},
                {'id': 6, 'value': 3},
                {'id': 7, 'value': 3},
                {'id': 8, 'value': 3},
                {'id': 9, 'value': 4},
            ])
        FacetTest.refresh()

        qs = (self.get_s()
              .facet_raw(created1={
                  'range': {
                      'field': 'value',
                      'ranges': [
                          {'from': 0, 'to': 5},
                          {'from': 5, 'to': 20}
                      ]
                  }
              })
        )

        data = qs.facet_counts()
        eq_(data["created1"].data,
            [
                {u'count': 9, u'from': 0.0, u'min': 1.0, u'max': 4.0,
                 u'to': 5.0, u'total_count': 9, u'total': 20.0,
                 u'mean': 2.2222222222222223},
                {u'count': 0, u'from': 5.0, u'total_count': 0,
                 u'to': 20.0, u'total': 0.0, u'mean': 0.0}
            ]
        )
Return a two-tuple representing the (start, end) positions of this
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/tests/test_query.py/FacetTest.test_facet_range--crossover with--dataset/ETHPy150Open nskinkel/oppy/oppy/cell/fixedlen.py/FixedLenCell.payloadRange