Home
last modified time | relevance | path

Searched refs:mock_logger (Results 1 – 13 of 13) sorted by relevance

/external/toolchain-utils/crosperf/
Dexperiment_runner_unittest.py103 mock_logger = FakeLogger() variable in ExperimentRunnerTest
126 log=self.mock_logger,
136 log=self.mock_logger,
162 self.mock_logger.Reset()
172 log=self.mock_logger,
179 self.assertEqual(self.mock_logger.LogStartDotsCount, 1)
180 self.assertEqual(self.mock_logger.LogAppendDotCount, 1)
181 self.assertEqual(self.mock_logger.LogEndDotsCount, 1)
182 self.assertEqual(self.mock_logger.dot_count, 2)
185 self.assertEqual(self.mock_logger.output_msgs, [
[all …]
Dbenchmark_run_unittest.py66 self.mock_logger = logger.GetLogger(log_dir='', mock=True)
122 self.test_cache_conditions, self.mock_machine_manager, self.mock_logger,
262 self.test_cache_conditions, self.mock_machine_manager, self.mock_logger,
289 self.test_cache_conditions, self.mock_machine_manager, self.mock_logger,
316 self.test_cache_conditions, self.mock_machine_manager, self.mock_logger,
333 self.test_cache_conditions, self.mock_machine_manager, self.mock_logger,
340 self.mock_logger.LogError = MockLogError
372 self.test_cache_conditions, self.mock_machine_manager, self.mock_logger,
401 self.mock_logger, 'average', self.test_label, None, "{'Score':100}", '',
407 self.test_cache_conditions, self.mock_machine_manager, self.mock_logger,
Dresults_cache_unittest.py193 self.mock_logger = mock.Mock(spec=logger.Logger)
211 self.result = Result(self.mock_logger, self.mock_label, 'average',
899 self.mock_logger = mock.Mock(spec=logger.Logger)
913 self.result = TelemetryResult(self.mock_logger, self.mock_label, 'average',
925 self.result = TelemetryResult(self.mock_logger, self.mock_label, 'average',
943 self.mock_logger = mock.Mock(spec=logger.Logger)
969 self.mock_logger,
1105 fake_result = Result(self.mock_logger, self.mock_label, 'average',
Dmachine_manager_unittest.py72 mock_logger = mock.Mock(spec=logger.Logger) variable in MachineManagerTest
89 self.mock_logger)
425 self.mock_logger.reset_mock()
427 self.assertEqual(self.mock_logger.call_count, 0)
445 mock_logger = mock.Mock(spec=logger.Logger)
457 mock_logger, 'verbose', '')
Dsettings_unittest.py188 def test_get_xbuddy_path(self, mock_downloader, mock_run, mock_logger): argument
222 if mock_logger:
Dsuite_runner_unittest.py30 mock_logger = mock.Mock(spec=logger.Logger) variable in SuiteRunnerTest
75 self.mock_logger, 'verbose', self.mock_cmd_exec, self.mock_cmd_term)
Dschedv2_unittest.py67 mock_logger = FakeLogger() variable in Schedv2Test
/external/python/oauth2client/tests/contrib/
Dtest__appengine_ndb.py62 def test_validate_success(self, mock_logger): argument
67 mock_logger.info.assert_called_once_with('validate: Got type %s',
71 def test_validate_none(self, mock_logger): argument
75 mock_logger.info.assert_called_once_with('validate: Got type %s',
79 def test_validate_bad_type(self, mock_logger): argument
84 mock_logger.info.assert_called_once_with('validate: Got type %s',
107 def test_validate_success(self, mock_logger): argument
111 mock_logger.info.assert_called_once_with('validate: Got type %s',
115 def test_validate_none(self, mock_logger): argument
119 mock_logger.info.assert_called_once_with('validate: Got type %s',
[all …]
Dtest_locked_file.py116 def test_lock_timeout_error(self, mock_time, mock_logger, mock_open): argument
126 self.assertTrue(mock_logger.warn.called)
131 def test_lock_timeout_error_no_fh(self, mock_time, mock_logger, mock_open): argument
144 self.assertTrue(mock_logger.warn.called)
/external/python/oauth2client/tests/
Dtest_util.py48 def test_enforcement_warning(self, mock_logger): argument
56 self.assertTrue(mock_logger.warning.called)
59 def test_enforcement_ignore(self, mock_logger): argument
67 self.assertFalse(mock_logger.warning.called)
/external/autotest/server/cros/network/
Drf_switch_utils_test.py50 with mock.patch('logging.Logger.error') as mock_logger:
52 mock_logger.assert_called_with(
60 with mock.patch('logging.Logger.debug') as mock_logger:
62 mock_logger.assert_called_with(
Drf_switch_controller_test.py75 with mock.patch('logging.Logger.error') as mock_logger:
78 mock_logger.assert_called_with(
90 with mock.patch('logging.Logger.error') as mock_logger:
93 mock_logger.assert_called_with(
/external/python/google-api-python-client/tests/
Dtest__helpers.py64 def test_enforcement_warning(self, mock_logger): argument
73 self.assertTrue(mock_logger.warning.called)
76 def test_enforcement_ignore(self, mock_logger): argument
84 self.assertFalse(mock_logger.warning.called)