class GarbageCollectorUnitTest(unittest.TestCase):

    def setUp(self):
        hourly_fixtures.clean_session_entries()
        hourly_fixtures.generated_session_entries()
        workers.garbage_collector_worker.TIMER_INTERVAL = 10
        self.worker = GarbageCollectorWorker(PROCESS_GC)

    def tearDown(self):
        # cleaning up DB
        hourly_fixtures.clean_session_entries()

        # killing the worker
        self.worker.__del__()
        del self.worker
 def setUp(self):
     hourly_fixtures.clean_session_entries()
     hourly_fixtures.generated_session_entries()
     workers.garbage_collector_worker.TIMER_INTERVAL = 10
     self.worker = GarbageCollectorWorker(PROCESS_GC)