def test_delete_timerange(self):
        items1 = self.items[:2] + self.items[4:]
        start, end = self.items[2], self.items[3]
        start_ts, end_ts = start[1], end[1]
        self.timeline.delete_timerange(start_ts, end_ts)
        items2 = self.timeline.items()
        self.assertEqual(len(items2), len(self.items) - 2)
        self.assert_ranges_equal(items1, self.timeline.items())
dataset/ETHPy150Open caxap/redis-moment/moment/tests.py/TimelineTestCase.test_delete_timerange/original