def test_lower_bound(self): qrange = utils.ESRange(field="value", from_value=10, to_value=1000, include_lower=False, include_upper=None) result = self.search(qrange) self.assertEqual(2, len(result.hits)) qrange = utils.ESRange(field="value", from_value=10, to_value=1000, include_lower=True, include_upper=None) result = self.search(qrange) self.assertEqual(3, len(result.hits))
def test_upper_none(self): qrange = utils.ESRange(field="value", from_value=98.0, to_value=None, include_lower=None, include_upper=None) result = self.search(qrange) self.assertEqual(2, len(result.hits))