Home
last modified time | relevance | path

Searched refs:assert_called_with (Results 1 – 25 of 63) sorted by relevance

123

/external/autotest/server/cros/faft/
Dfirmware_test_unittest.py38 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/
Dtesthelpers.py28 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 …]
Dtestmock.py156 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/
Dtesthelpers.py40 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 …]
Dtestmock.py175 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/
Dtest_proactor_events.py56 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 …]
Dtest_selector_events.py147 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 …]
Dtest_unix_events.py70 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 …]
Dtest_base_events.py566 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/
Dtest_locked_file.py163 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()
Dtest_gce.py80 get_token.assert_called_with(http_request,
85 get_token.assert_called_with(http_request,
/external/toolchain-utils/crosperf/
Ddownload_images_unittest.py57 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(
Dexperiment_runner_unittest.py326 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/
Djetstream_host_unittest.py21 mock_cleanup.assert_called_with()
30 mock_cleanup.assert_called_with()
/external/autotest/client/cros/multimedia/
Dcfm_facade_native_unittest.py53 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/
Drf_switch_utils_test.py52 mock_logger.assert_called_with(
62 mock_logger.assert_called_with(
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_squeezer.py155 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/
Dutils_test.py123 mocked_write.assert_called_with('hello\n')
131 mocked_write.assert_called_with(b'hello\n')
Dhelper_test.py34 mocked_build_image_impl.assert_called_with(image_name)
/external/oss-fuzz/infra/cifuzz/
Dcoverage_test.py179 mocked_get_json_from_url.assert_called_with(self.LATEST_REPORT_INFO_URL)
188 mocked_error.assert_called_with(
Dclusterfuzz_deployment_test.py118 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/
Dheat_map_test.py80 mock_ChrootRunCommand.assert_called_with(heatmap.chromeos_root, cmd)
153 heat_map.HeatMapProducer.assert_called_with(
/external/autotest/site_utils/
Dhwid_lib_unittest.py131 mock_urlopen.assert_called_with(expected_url)
152 mock_urlopen.assert_called_with(expected_url)
/external/oss-fuzz/infra/base-images/base-runner/
Dtest_all_test.py36 mocked_print.assert_called_with('ERROR: No fuzz targets found.')
/external/python/cpython3/Lib/test/
Dtest_getpass.py121 tcsetattr.assert_called_with(3, mock.ANY, fake_attrs)
147 mock_stream.flush.assert_called_with()

123