def test_distributed_lock_acquireAndReleaseLock(self):
        """Test that the lock can be acquired and released properly."""
        lock = get_deployment_lock(self.zookeeper_client, self.acquire_timeout)
        self.assertTrue(lock.acquire())
        self.assertTrue(lock.is_acquired)
        lock.release()
        self.assertFalse(lock.is_acquired)
Test that the lock can be acquired and released properly.
tests/integ_tests/core/distributed_lock/test_distributed_lock.py