Home
last modified time | relevance | path

Searched refs:call_args_list (Results 1 – 25 of 33) sorted by relevance

12

/external/toolchain-utils/crosperf/
Dschedv2_unittest.py133 self.assertEquals(len(reader.call_args_list[0][0][1]), 4)
134 self.assertEquals(len(reader.call_args_list[1][0][1]), 4)
135 self.assertEquals(len(reader.call_args_list[2][0][1]), 4)
136 self.assertEquals(len(reader.call_args_list[3][0][1]), 4)
137 self.assertEquals(len(reader.call_args_list[4][0][1]), 2)
149 self.assertEquals(len(reader.call_args_list[0][0][1]), 4)
150 self.assertEquals(len(reader.call_args_list[1][0][1]), 4)
151 self.assertEquals(len(reader.call_args_list[2][0][1]), 4)
152 self.assertEquals(len(reader.call_args_list[3][0][1]), 4)
164 self.assertEquals(len(reader.call_args_list[0][0][1]), 3)
[all …]
Dresults_cache_unittest.py231 first_args = mock_copyfiles.call_args_list[0][0]
232 second_args = mock_copyfiles.call_args_list[1][0]
233 third_args = mock_copyfiles.call_args_list[2][0]
245 self.assertEqual(mock_runcmd.call_args_list[0],
246 mock_runcmd.call_args_list[1])
247 self.assertEqual(mock_runcmd.call_args_list[0],
248 mock_runcmd.call_args_list[2])
249 self.assertEqual(mock_runcmd.call_args_list[0][0], ('mkdir -p /tmp/test',))
270 self.assertEqual(len(mockCopyFilesTo.call_args_list), 2)
271 self.assertEqual(mockCopyFilesTo.call_args_list[0][0], ('/tmp/results/',
[all …]
Ddownload_images_unittest.py120 self.assertEqual(len(mock_cmd_exec.RunCommand.call_args_list[0]), 2)
121 actual_arg = mock_cmd_exec.RunCommand.call_args_list[0][0]
130 mock_cmd_exec.RunCommand.call_args_list[0][1]))
133 self.assertEqual(len(mock_cmd_exec.RunCommand.call_args_list[1]), 2)
134 actual_arg = mock_cmd_exec.RunCommand.call_args_list[1][0]
140 self.assertTrue('{}' in repr(mock_cmd_exec.RunCommand.call_args_list[1][1]))
Dsuite_runner_unittest.py168 cmd = mock_cros_runcmd.call_args_list[0][0]
199 self.assertEqual(mock_cros_runcmd.call_args_list[0][0],
236 self.assertEqual(mock_cros_runcmd.call_args_list[0][0],
238 args_list = mock_chroot_runcmd.call_args_list[0][0]
239 args_dict = mock_chroot_runcmd.call_args_list[0][1]
263 args_list = mock_chroot_runcmd.call_args_list[0][0]
264 args_dict = mock_chroot_runcmd.call_args_list[0][1]
333 mock_runcmd.call_args_list[0][0],
Dsettings_unittest.py204 self.assertEqual(mock_run.call_args_list[0][0],
212 self.assertEqual(mock_run.call_args_list[0][0],
219 self.assertEqual(mock_run.call_args_list[0][0],
Dmachine_manager_unittest.py718 self.assertEqual(mock_md5sum.call_args_list[0][0][0],
720 self.assertEqual(mock_md5sum.call_args_list[1][0][0], 'machine_id1')
742 first_args = mock_run_cmd.call_args_list[0]
743 second_args = mock_run_cmd.call_args_list[1]
770 call_args = mock_run_cmd.call_args_list[0]
790 call_args = mock_run_cmd.call_args_list[0]
Dexperiment_runner_unittest.py441 self.assertEqual(len(mock_writefile.call_args_list), 3)
442 first_args = mock_writefile.call_args_list[0]
443 second_args = mock_writefile.call_args_list[1]
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dbase_config_unittest.py271 uploader_cs_mock.Insert.call_args_list)
273 uploader_cs_mock.Exists.call_args_list)
275 uploader_cs_mock.Copy.call_args_list)
277 uploader_cs_mock.Delete.call_args_list)
319 uploader_cs_mock.Insert.call_args_list)
321 uploader_cs_mock.Exists.call_args_list)
323 uploader_cs_mock.Copy.call_args_list)
325 uploader_cs_mock.Delete.call_args_list)
361 uploader_cs_mock.Insert.call_args_list)
363 uploader_cs_mock.Exists.call_args_list)
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_tooltip.py28 wrapped_func.call_args_list.append((args, kwargs))
30 wrapped_func.call_args_list = []
102 self.assertGreater(len(tooltip.showtip.call_args_list), 0)
116 self.assertGreater(len(tooltip.showtip.call_args_list), 0)
128 self.assertGreater(len(tooltip.showtip.call_args_list), 0)
142 self.assertEqual(tooltip.showtip.call_args_list, [])
/external/chromium-trace/catapult/devil/devil/android/
Dmd5sum_test.py115 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
138 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
162 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
184 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
204 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
230 self.assertEquals(3, len(device.RunShellCommand.call_args_list))
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/
Dbase_test.py40 actual_list = [arg[0][0] for arg in mock_time.sleep.call_args_list]
61 actual_list = [arg[0][0] for arg in mock_time.sleep.call_args_list]
/external/python/mock/mock/tests/
Dtesthelpers.py241 self.assertEqual(mock.call_args_list,
265 self.assertEqual(mock.call_args_list, [call(1, 2, a=3, b=4)])
893 self.assertIsInstance(mock.call_args_list, _CallList)
901 self.assertIn(kall, mock.call_args_list)
904 self.assertIn(calls, mock.call_args_list)
906 self.assertIn(calls, mock.call_args_list)
908 self.assertIn(calls, mock.call_args_list)
910 self.assertIn(calls, mock.call_args_list)
912 self.assertNotIn(call('fish'), mock.call_args_list)
913 self.assertNotIn([call('fish')], mock.call_args_list)
Dtestmock.py86 self.assertEqual(mock.call_args_list, [],
249 self.assertEqual(mock.call_args_list, [], "call_args_list not reset")
293 self.assertEqual(mock.call_args_list, [((sentinel.Arg,), {})],
305 self.assertEqual(mock.call_args_list, [
318 self.assertEqual(mock.call_args_list, [
1016 for expected, call_args in zip(expected_list, mock.call_args_list):
/external/python/cpython3/Lib/unittest/test/testmock/
Dtesthelpers.py239 self.assertEqual(mock.call_args_list,
263 self.assertEqual(mock.call_args_list, [call(1, 2, a=3, b=4)])
938 self.assertIsInstance(mock.call_args_list, _CallList)
946 self.assertIn(kall, mock.call_args_list)
949 self.assertIn(calls, mock.call_args_list)
951 self.assertIn(calls, mock.call_args_list)
953 self.assertIn(calls, mock.call_args_list)
955 self.assertIn(calls, mock.call_args_list)
957 self.assertNotIn(call('fish'), mock.call_args_list)
958 self.assertNotIn([call('fish')], mock.call_args_list)
Dtestmock.py62 self.assertEqual(mock.call_args_list, [],
225 self.assertEqual(mock.call_args_list, [], "call_args_list not reset")
269 self.assertEqual(mock.call_args_list, [((sentinel.Arg,), {})],
281 self.assertEqual(mock.call_args_list, [
294 self.assertEqual(mock.call_args_list, [
1155 for expected, call_args in zip(expected_list, mock.call_args_list):
/external/autotest/client/common_lib/cros/
Dgs_cache_client_unittest.py132 self.assertListEqual(self.api.extract.call_args_list, expected_calls)
150 self.assertListEqual(self.api.extract.call_args_list, expected_calls)
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py152 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
181 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dretry_util_unittest.py45 self.time_sleep.call_args_list,
/external/tensorflow/tensorflow/python/util/
Ddeprecation_test.py663 (args1, _) = mock_warning.call_args_list[0]
667 (args2, _) = mock_warning.call_args_list[1]
690 (args1, _) = mock_warning.call_args_list[0]
694 (args2, _) = mock_warning.call_args_list[1]
/external/v8/tools/unittests/
Drun_perf_test.py182 self.assertEquals(len(args), len(command.Command.call_args_list))
183 for arg, actual in zip(args, command.Command.call_args_list):
/external/python/cpython3/Lib/test/
Dtest_getpass.py32 environ.get.call_args_list,
/external/python/cpython3/Doc/library/
Dunittest.mock-examples.rst727 :attr:`~Mock.call_args_list`:
733 >>> mock.call_args_list
737 can build up a list of expected calls and compare it to ``call_args_list``. This
738 looks remarkably similar to the repr of the ``call_args_list``:
741 >>> mock.call_args_list == expected
749 mutable arguments. ``call_args`` and ``call_args_list`` store *references* to the
924 :data:`~Mock.call_args_list` to assert about how the dictionary was used:
976 >>> mock.__getitem__.call_args_list
978 >>> mock.__setitem__.call_args_list
/external/pdfium/third_party/pymock/
Dmock.py319 funcopy.call_args_list = _CallList()
591 call_args_list = _delegating_property('call_args_list') variable in NonCallableMock
618 self.call_args_list = _CallList()
888 if kall not in self.call_args_list:
963 self.call_args_list.append(_Call((args, kwargs), two=True))
/external/python/cpython2/Lib/test/
D_mock_backport.py224 funcopy.call_args_list = _CallList()
503 call_args_list = _delegating_property('call_args_list') variable in NonCallableMock
534 self.call_args_list = _CallList()
842 actual = [self._call_matcher(c) for c in self.call_args_list]
922 self.call_args_list.append(_call)
/external/python/cpython3/Lib/unittest/
Dmock.py211 funcopy.call_args_list = _CallList()
507 call_args_list = _delegating_property('call_args_list') variable in NonCallableMock
545 self.call_args_list = _CallList()
885 actual = [self._call_matcher(c) for c in self.call_args_list]
971 self.call_args_list.append(_call)

12