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))
150 def LockIfNotInUse(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): member in LocalInstanceLock
211 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()
40 self._mock_lock.LockIfNotInUse.side_effect = (False, True)332 self.assertEqual(2, self._mock_lock.LockIfNotInUse.call_count)
154 if ins_lock.LockIfNotInUse(timeout_secs=0):
241 if ins_lock.LockIfNotInUse(timeout_secs=0):