

def test_drain(self):
    self.semaphore.init(10)
    self.semaphore.drain_permits()
    available_permits = self.semaphore.available_permits()
    available_permits.assertEqual(available_permits, 0)

dataset/ETHPy150Open hazelcast/hazelcast-python-client/tests/proxy/semaphore_test.py SemaphoreTest.test_drain/VarMisuse@37/57 `self`->`available_permits`