def test_distributed_lock_lockAcquisitionTimeout(self):
        """Test lock acquisition fails when timeout is reached."""
        lock = get_deployment_lock(self.zookeeper_client, self.acquire_timeout)  # Short timeout for the test
        with self.assertRaises(ZookeeperLockNotAcquiredError):
            with patch.object(lock._lock, 'acquire', side_effect=LockTimeout):
                self.assertFalse(lock.acquire())
Test lock acquisition fails when timeout is reached.
tests/integ_tests/core/distributed_lock/test_distributed_lock.py