Searched refs:sleep_mock (Results 1 – 3 of 3) sorted by relevance
/external/tensorflow/tensorflow/python/tpu/client/ |
D | client_test.py | 723 sleep_mock = mock.patch.object(time, 'sleep', autospec=True).start() 724 sleep_mock.side_effect = self._mock_sleep 746 self.assertEqual(sleep_mock.call_count, return_time/interval) 753 sleep_mock = mock.patch.object(time, 'sleep', autospec=True).start() 754 sleep_mock.side_effect = self._mock_sleep
|
/external/toolchain-utils/rust_tools/ |
D | rust_watch_test.py | 56 def test_update_git_repo_tries_again_on_failure(self, sleep_mock, run_mock): argument 83 self.assertEqual(sleep_mock.mock_calls, sleep_timings)
|
/external/autotest/client/cros/video/ |
D | histogram_verifier_unittest.py | 91 self.sleep_mock = self.time_patcher.start() 92 self.sleep_mock.side_effect = [True, True, False]
|