def test_archive_skip(self):

        self.r.hset(self.counter, self.start_time-1, 1)
        self.r.hset(self.counter, self.start_time+1, 2)
        TimeSeries.archive_cat_counts(self.r, self.cat_id, self.start_time)

        self.assertRaises(KeyError, self.r.hget, self.counter, self.start_time-1)
        self.assertTrue(self.r.hget(self.counter, self.start_time+1))

        ts = self.r.zrange("ts_%s" % self.cat_id, 0, -1, withscores=True)
        self.assertEqual(len(ts), 1)
        self.assertEqual(ts_to_hits(ts[0]), 1)
TODO: add docstring
dataset/ETHPy150Open gmcquillan/firetower/tests/test_archiving.py/TestArchive.test_archive_skip--crossover with--dataset/ETHPy150Open treasure-data/td-client-python/tdclient/schedule_model.py/Schedule.org_name