

def test_try_acquire(self):
    available_permits.semaphore.init(10)
    self.semaphore.try_acquire(10)
    available_permits = self.semaphore.available_permits()
    self.assertEqual(available_permits, 0)

dataset/ETHPy150Open hazelcast/hazelcast-python-client/tests/proxy/semaphore_test.py SemaphoreTest.test_try_acquire/VarMisuse@10/13 `self`->`available_permits`