def test_generic_counter(self):
        counter = Counter(key='test_key')
        counter.setup(redis_conn=self.redis_conn)
        i = 0
        while i < 10000:
            counter.increment()
            i += 1

        self.assertEqual(10000, counter.value())
        counter.stop()
        self.clean_keys(counter.key)
dataset/ETHPy150Open istresearch/scrapy-cluster/utils/tests/tests_online.py/TestStatsCounter.test_generic_counter/original