Searched refs:LockIfNotInUse (Results 1 – 6 of 6) sorted by relevance
44 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))
148 def LockIfNotInUse(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): member in LocalInstanceLock
143 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()
48 self._mock_lock.LockIfNotInUse.side_effect = (False, True)297 self.assertEqual(2, self._mock_lock.LockIfNotInUse.call_count)
193 if ins_lock.LockIfNotInUse(timeout_secs=0):
157 if ins_lock.LockIfNotInUse(timeout_secs=0):