def testRenewLock(self):
    Lock.ABANDONMENT_SECS = .3
    Lock.LOCK_RENEWAL_SECS = .1
    lock = self._TryAcquire('op', 'id', detect_abandonment=True, release_lock=False)
    self.io_loop.add_timeout(timedelta(seconds=.6), self.stop)
    self.wait()
    self._TryAcquire('op', 'id', expected_status=Lock.FAILED_TO_ACQUIRE_LOCK)
    self._Release(lock)
    Lock.ABANDONMENT_SECS = 60
    Lock.LOCK_RENEWAL_SECS = 30
Test that renewal mechanism is preventing lock abandonment.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/test/lock_test.py/LockTestCase.testRenewLock