def _ranging(self):
        agg_ranges = []
        for i, val in enumerate(self.range_list):
            if i == 0:
                agg_ranges.append({"to": val})
            else:
                previous = self.range_list[i - 1]
                agg_ranges.append({"from": previous, "to": val})

            if i + 1 == len(self.range_list):
                agg_ranges.append({"from": val})
        return agg_ranges
Sets up the needed objects used throughout the test.
dataset/ETHPy150Open Yipit/pyeqs/pyeqs/dsl/aggregations.py/Aggregations._ranging--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/tar_file_entry.py/TARFileEntryTest.setUp