Home
last modified time | relevance | path

Searched refs:LockIfNotInUse (Results 1 – 6 of 6) sorted by relevance

/tools/acloud/internal/lib/
Dlocal_instance_lock_test.py44 self.assertTrue(self._lock.LockIfNotInUse())
48 self.assertTrue(self._lock.LockIfNotInUse(timeout_secs=0))
52 self.assertFalse(self._lock.LockIfNotInUse())
73 self.assertFalse(self._lock.LockIfNotInUse(timeout_secs=0))
92 self.assertFalse(self._lock.LockIfNotInUse(timeout_secs=1))
Dlocal_instance_lock.py150 def LockIfNotInUse(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): member in LocalInstanceLock
/tools/acloud/create/
Dlocal_image_local_instance_test.py211 mock_lock.LockIfNotInUse.side_effect = (False, True)
219 self.assertEqual(2, mock_lock.LockIfNotInUse.call_count)
221 mock_lock.LockIfNotInUse.reset_mock()
228 mock_lock.LockIfNotInUse.assert_not_called()
Dgoldfish_local_image_local_instance_test.py40 self._mock_lock.LockIfNotInUse.side_effect = (False, True)
332 self.assertEqual(2, self._mock_lock.LockIfNotInUse.call_count)
Dgoldfish_local_image_local_instance.py154 if ins_lock.LockIfNotInUse(timeout_secs=0):
Dlocal_image_local_instance.py241 if ins_lock.LockIfNotInUse(timeout_secs=0):