def test_uniques(self):
        counter = UniqueCounter(key='test_key')
        counter.setup(redis_conn=self.redis_conn)

        i = 0
        while i < 1000:
            counter.increment(i % 100)
            i += 1
        self.assertEqual(counter.value(), 100)
        counter.stop()
        self.clean_keys(counter.key)
dataset/ETHPy150Open istresearch/scrapy-cluster/utils/tests/tests_online.py/TestStatsUniqueCounter.test_uniques/original