Searched refs:assert_called_with (Results 1 – 25 of 63) sorted by relevance
123
/external/autotest/server/cros/faft/ |
D | firmware_test_unittest.py | 38 ft.test_good.assert_called_with() 41 ft.test_good.assert_called_with('arg1', arg2='arg2') 48 ft.test_good.assert_called_with() 51 ft.test_good.assert_called_with('arg1', arg2='arg2') 58 ft.test.assert_called_with() 61 ft.test.assert_called_with('arg1', arg2='arg2') 68 ft.test_good_better.assert_called_with() 71 ft.test_good_better.assert_called_with('arg1', arg2='arg2') 99 ft.test_host_mock.assert_called_with('host', arg2='arg2') 106 ft.test_arg2_mock.assert_called_with('arg2') [all …]
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testhelpers.py | 28 mock.assert_called_with(ANY) 32 mock.assert_called_with(foo=ANY) 43 mock.assert_called_with(ANY, foo=ANY) 75 mock.assert_called_with(ANY, 1) 87 mock.assert_called_with(ANY, 1) 384 mock.one.assert_called_with(1, 2) 386 mock.one.assert_called_with, 3, 4) 390 mock.two.assert_called_with() 392 mock.two.assert_called_with, 3) 396 mock.three.assert_called_with() [all …]
|
D | testmock.py | 156 mock.assert_called_with(1, 2, fish=3) 347 mock.assert_called_with() 348 self.assertRaises(AssertionError, mock.assert_called_with, 1) 351 self.assertRaises(AssertionError, mock.assert_called_with) 354 mock.assert_called_with(1, 2, 3, a='fish', b='nothing') 360 m.assert_called_with(mock.ANY) 369 mock.assert_called_with(1, 2, 3) 370 mock.assert_called_with(a=1, b=2, c=3) 371 self.assertRaises(AssertionError, mock.assert_called_with, 375 mock.assert_called_with(e=8) [all …]
|
/external/python/mock/mock/tests/ |
D | testhelpers.py | 40 mock.assert_called_with(ANY) 44 mock.assert_called_with(foo=ANY) 55 mock.assert_called_with(ANY, foo=ANY) 355 mock.one.assert_called_with(1, 2) 357 mock.one.assert_called_with, 3, 4) 361 mock.two.assert_called_with() 363 mock.two.assert_called_with, 3) 367 mock.three.assert_called_with() 369 mock.three.assert_called_with, 3) 373 mock.three.assert_called_with(1) [all …]
|
D | testmock.py | 175 mock.assert_called_with(1, 2, fish=3) 358 mock.assert_called_with() 359 self.assertRaises(AssertionError, mock.assert_called_with, 1) 362 self.assertRaises(AssertionError, mock.assert_called_with) 365 mock.assert_called_with(1, 2, 3, a='fish', b='nothing') 371 m.assert_called_with(mock.ANY) 380 mock.assert_called_with(1, 2, 3) 381 mock.assert_called_with(a=1, b=2, c=3) 382 self.assertRaises(AssertionError, mock.assert_called_with, 386 mock.assert_called_with(e=8) [all …]
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_proactor_events.py | 56 self.proactor.recv.assert_called_with(self.sock, 32768) 61 self.loop._proactor.recv.assert_called_with(self.sock, 32768) 72 self.loop._proactor.recv.assert_called_with(self.sock, 32768) 73 self.protocol.data_received.assert_called_with(b'data') 95 tr._fatal_error.assert_called_with( 125 tr._force_close.assert_called_with(err) 133 tr._fatal_error.assert_called_with( 142 tr._loop_writing.assert_called_with(data=b'data') 161 self.loop._proactor.send.assert_called_with(self.sock, b'data') 163 assert_called_with(tr._loop_writing) [all …]
|
D | test_selector_events.py | 147 selector.close.assert_called_with() 148 ssock.close.assert_called_with() 149 csock.close.assert_called_with() 150 remove_reader.assert_called_with(7) 326 self.loop._add_callback.assert_called_with(reader) 337 self.loop._remove_reader.assert_called_with(1) 348 self.loop._add_callback.assert_called_with(writer) 359 self.loop._remove_writer.assert_called_with(1) 405 tr._force_close.assert_called_with(None) 455 tr._force_close.assert_called_with(exc) [all …]
|
D | test_unix_events.py | 70 self.loop.remove_signal_handler.assert_called_with(signal.NSIG + 1) 677 self.protocol.connection_made.assert_called_with(tr) 687 m_read.assert_called_with(5, tr.max_size) 688 self.protocol.data_received.assert_called_with(b'data') 696 m_read.assert_called_with(5, tr.max_size) 699 self.protocol.eof_received.assert_called_with() 700 self.protocol.connection_lost.assert_called_with(None) 708 m_read.assert_called_with(5, tr.max_size) 721 m_read.assert_called_with(5, tr.max_size) 722 tr._close.assert_called_with(err) [all …]
|
D | test_base_events.py | 566 log.error.assert_called_with( 576 log.error.assert_called_with( 597 log.error.assert_called_with( 602 log.error.assert_called_with( 628 mock_handler.assert_called_with(self.loop, { 640 log.error.assert_called_with( 663 log.error.assert_called_with( 694 log.error.assert_called_with( 705 log.error.assert_called_with( 1283 sock.connect.assert_called_with(('1.2.3.4', 80)) [all …]
|
/external/python/oauth2client/tests/contrib/ |
D | test_locked_file.py | 163 mock_sleep.assert_called_with(1) 193 opener_mock.assert_called_with('a_file', 'r+', 'r') 201 _win32_opener_mock._Win32Opener.assert_called_with('a_file', 'r+', 'r') 210 _fnctl_opener_mock._FcntlOpener.assert_called_with('a_file', 'r+', 'r') 219 opener_mock.assert_called_with('a_file', 'r+', 'r') 239 opener.open_and_lock.assert_called_with(0, 0.05) 244 opener.unlock_and_close.assert_called_with()
|
D | test_gce.py | 80 get_token.assert_called_with(http_request, 85 get_token.assert_called_with(http_request,
|
/external/toolchain-utils/crosperf/ |
D | download_images_unittest.py | 57 mock_path_exists.assert_called_with( 65 mock_mkdirs.assert_called_with( 76 mock_cmd_exec.RunCommand.assert_called_with(expected_args) 88 mock_path_exists.assert_called_with( 117 mock_path_exists.assert_called_with( 154 mock_path_exists.assert_called_with(
|
D | experiment_runner_unittest.py | 326 mock_attachment.assert_called_with('report.html', 358 mock_attachment.assert_called_with('report.html', 385 mock_attachment.assert_called_with('report.html', 455 mock_cleanup.assert_called_with(bench_run.benchmark.rm_chroot_tmp) 457 mock_copy.assert_called_with(bench_path) 467 mock_mkdir.assert_called_with('/usr/local/crosperf-results') 469 mock_rmdir.assert_called_with('/usr/local/crosperf-results') 481 mock_open.assert_called_with('/usr/local/crosperf-results/topstats.log', 495 mock_copy.assert_called_with(bench_path) 497 mock_compress.assert_called_with(bench_path)
|
/external/autotest/server/hosts/ |
D | jetstream_host_unittest.py | 21 mock_cleanup.assert_called_with() 30 mock_cleanup.assert_called_with()
|
/external/autotest/client/cros/multimedia/ |
D | cfm_facade_native_unittest.py | 53 mock_kiosk_utils.wait_for_kiosk_ext.assert_called_with(self.browser, 63 mock_kiosk_utils.get_webview_contexts.assert_called_with(self.browser, 125 dummy_ctx.ExecuteJavaScript.assert_called_with(
|
/external/autotest/server/cros/network/ |
D | rf_switch_utils_test.py | 52 mock_logger.assert_called_with( 62 mock_logger.assert_called_with(
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_squeezer.py | 155 orig_write.assert_called_with(text, ()) 169 orig_write.assert_called_with(text, "stderr") 184 orig_write.assert_called_with(text, "stdout") 342 MockHovertip.assert_called_with(expandingbutton, ANY, hover_delay=ANY) 378 squeezer.expandingbuttons.remove.assert_called_with(expandingbutton) 438 expandingbutton.clipboard_append.assert_called_with('TEXT')
|
/external/oss-fuzz/infra/ |
D | utils_test.py | 123 mocked_write.assert_called_with('hello\n') 131 mocked_write.assert_called_with(b'hello\n')
|
D | helper_test.py | 34 mocked_build_image_impl.assert_called_with(image_name)
|
/external/oss-fuzz/infra/cifuzz/ |
D | coverage_test.py | 179 mocked_get_json_from_url.assert_called_with(self.LATEST_REPORT_INFO_URL) 188 mocked_error.assert_called_with(
|
D | clusterfuzz_deployment_test.py | 118 mocked_error.assert_called_with('Unable to download from: %s.', self.URL) 131 mocked_error.assert_called_with('Failed to download %s, %d times.',
|
/external/toolchain-utils/heatmaps/ |
D | heat_map_test.py | 80 mock_ChrootRunCommand.assert_called_with(heatmap.chromeos_root, cmd) 153 heat_map.HeatMapProducer.assert_called_with(
|
/external/autotest/site_utils/ |
D | hwid_lib_unittest.py | 131 mock_urlopen.assert_called_with(expected_url) 152 mock_urlopen.assert_called_with(expected_url)
|
/external/oss-fuzz/infra/base-images/base-runner/ |
D | test_all_test.py | 36 mocked_print.assert_called_with('ERROR: No fuzz targets found.')
|
/external/python/cpython3/Lib/test/ |
D | test_getpass.py | 121 tcsetattr.assert_called_with(3, mock.ANY, fake_attrs) 147 mock_stream.flush.assert_called_with()
|
123