Home
last modified time | relevance | path

Searched refs:mock_run (Results 1 – 3 of 3) sorted by relevance

/external/toolchain-utils/crosperf/
Dsettings_unittest.py188 def test_get_xbuddy_path(self, mock_downloader, mock_run, mock_logger): argument
190 mock_run.return_value = 'fake_xbuddy_translation'
191 mock_downloader.Run = mock_run
203 self.assertEqual(mock_run.call_count, 1)
204 self.assertEqual(mock_run.call_args_list[0][0],
208 mock_run.reset_mock()
211 self.assertEqual(mock_run.call_count, 1)
212 self.assertEqual(mock_run.call_args_list[0][0],
215 mock_run.reset_mock()
218 self.assertEqual(mock_run.call_count, 1)
[all …]
/external/autotest/client/bin/
Dlocal_host_unittest.py40 def test_run_success(self, mock_run): argument
48 mock_run.return_value = result
61 mock_run.assert_called_once_with(
74 def test_run_cmd_failure_raised(self, mock_run): argument
76 mock_run.side_effect = error.CmdError('yes', mock_result)
83 mock_run.assert_called_once_with(
96 def test_run_cmd_timeout_raised(self, mock_run): argument
98 mock_run.side_effect = error.CmdTimeoutError('yes', mock_result)
105 mock_run.assert_called_once_with(
118 def test_run_failure_ignored(self, mock_run): argument
[all …]
/external/tensorflow/tensorflow/python/training/
Dmonitored_session_test.py1223 mock_run = FakeSession(sess)
1224 mon_sess = monitored_session._HookedSession(sess=mock_run, hooks=[])
1232 self.assertEqual(mock_run.args_called, {