Searched refs:SetInUse (Results 1 – 8 of 8) sorted by relevance
49 self._lock.SetInUse(True)55 self._lock.SetInUse(False)64 self.assertRaises(RuntimeError, self._lock.SetInUse, True)65 self.assertRaises(RuntimeError, self._lock.SetInUse, False)
122 def SetInUse(self, in_use): member in LocalInstanceLock
56 mock_lock.SetInUse.assert_called_once_with(False)77 mock_lock.SetInUse.assert_called_once_with(False)107 mock_lock.SetInUse.assert_called_once_with(False)134 mock_lock.SetInUse.assert_called_once_with(False)155 mock_lock.SetInUse.assert_called_once_with(False)
147 ins_lock.SetInUse(False)183 lock.SetInUse(False)218 ins_lock.SetInUse(False)
208 self._mock_lock.SetInUse.assert_called_once_with(True)256 self._mock_lock.SetInUse.assert_called_once_with(True)300 self._mock_lock.SetInUse.assert_called_once_with(True)332 self._mock_lock.SetInUse.assert_not_called()
134 mock_lock.SetInUse.assert_called_once_with(True)138 mock_lock.SetInUse.reset_mock()147 mock_lock.SetInUse.assert_not_called()
119 ins_lock.SetInUse(True)126 ins_lock.SetInUse(True)
165 ins_lock.SetInUse(True)173 ins_lock.SetInUse(True)