def test_the_same_distributed_lock_canNotBeAcquiredTwice(self):
        """Test that the same lock cannot be acquired twice."""
        lock = get_deployment_lock(self.zookeeper_client, self.acquire_timeout)
        self.assertTrue(lock.acquire())
        with self.assertRaises(ZookeeperLockNotAcquiredError):
            lock.acquire()
Test that the same lock cannot be acquired twice.
tests/integ_tests/core/distributed_lock/test_distributed_lock.py