def testLockAlreadyAcquired(self):
    lock = self._TryAcquire('op', 'andy', release_lock=False)
    self._TryAcquire('op', 'andy', expected_status=Lock.FAILED_TO_ACQUIRE_LOCK)
    self._TryAcquire('op', 'andy', expected_status=Lock.FAILED_TO_ACQUIRE_LOCK)
    self._Release(lock)
    self.assertEqual(lock.acquire_failures, 2)
Test attempt to acquire a lock that is already owned.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/test/lock_test.py/LockTestCase.testLockAlreadyAcquired