Exemplo n.º 1
0
 def test_threading(self):
     # this test ensures the thread can start and stop
     tc = ThreadedCounter(start_time=1442671176, cycle_time=1)
     tc.expire = MagicMock()
     tc.setup(redis_conn=self.redis_conn)
     time.sleep(1)
     tc.stop()
Exemplo n.º 2
0
 def test_threading(self):
     # this test ensures the thread can start and stop
     tc = ThreadedCounter(start_time=1442671176, cycle_time=1)
     tc.expire = MagicMock()
     tc.setup(redis_conn=self.redis_conn)
     time.sleep(1)
     tc.stop()