def test_distributed_lock_repeatedAcquireRelease(self):
        """Test acquiring and releasing the lock repeatedly."""
        lock = get_deployment_lock(self.zookeeper_client, self.acquire_timeout)
        for _ in range(5):
            self.assertTrue(lock.acquire())
            self.assertTrue(lock.is_acquired)
            lock.release()
            self.assertFalse(lock.is_acquired)
Test acquiring and releasing the lock repeatedly.
tests/integ_tests/core/distributed_lock/test_distributed_lock.py