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.py148 def LockIfNotInUse(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): member in LocalInstanceLock
/tools/acloud/create/
Dlocal_image_local_instance_test.py143 mock_lock.LockIfNotInUse.side_effect = (False, True)
151 self.assertEqual(2, mock_lock.LockIfNotInUse.call_count)
153 mock_lock.LockIfNotInUse.reset_mock()
160 mock_lock.LockIfNotInUse.assert_not_called()
Dgoldfish_local_image_local_instance_test.py48 self._mock_lock.LockIfNotInUse.side_effect = (False, True)
297 self.assertEqual(2, self._mock_lock.LockIfNotInUse.call_count)
Dlocal_image_local_instance.py193 if ins_lock.LockIfNotInUse(timeout_secs=0):
Dgoldfish_local_image_local_instance.py157 if ins_lock.LockIfNotInUse(timeout_secs=0):