Home
last modified time | relevance | path

Searched refs:assert_called_once_with (Results 1 – 25 of 86) sorted by relevance

1234

/external/chromium-trace/catapult/devil/devil/android/perf/
Dperf_control_test.py64 mock_device.EnableRoot.assert_called_once_with()
65 pc._ForceAllCpusOnline.assert_called_once_with(True)
66 pc.SetScalingGovernor.assert_called_once_with('performance')
67 pc._SetScalingMaxFreqForCpus.assert_called_once_with(
69 pc._SetMaxGpuClock.assert_called_once_with(200000000)
87 mock_device.EnableRoot.assert_called_once_with()
88 pc._ForceAllCpusOnline.assert_called_once_with(True)
89 pc.SetScalingGovernor.assert_called_once_with('performance')
90 pc._SetScalingMaxFreqForCpus.assert_called_once_with(
92 pc._SetMaxGpuClock.assert_called_once_with(300000000)
[all …]
/external/toolchain-utils/cros_utils/
Ddevice_setup_utils_unittest.py121 mock_cros_runcmd.assert_called_once_with(
131 mock_cros_runcmd.assert_called_once_with(
146 mock_cros_runcmd.assert_called_once_with(
164 self.dw.RunCommandOnDut.assert_called_once_with(set_cpu_cmd)
178 self.dw.RunCommandOnDut.assert_called_once_with(
194 self.dw.RunCommandOnDut.assert_called_once_with(
209 self.dw.RunCommandOnDut.assert_called_once_with(
223 self.dw.RunCommandOnDut.assert_called_once_with(set_cpu_cmd)
282 self.dw.SetupArmCores.assert_called_once_with()
290 self.dw.SetupArmCores.assert_called_once_with()
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_keyring_storage.py73 new_from_json.assert_called_once_with(mock_content)
74 get_password.assert_called_once_with(service_name, user_name)
76 set_store.assert_called_once_with(store)
90 to_json.assert_called_once_with()
91 set_password.assert_called_once_with(service_name, user_name,
102 set_password.assert_called_once_with(service_name, user_name, '')
111 get_password.assert_called_once_with('my_unit_test', 'me')
120 get_password.assert_called_once_with('my_unit_test', 'me')
149 set_password.assert_called_once_with(
151 get_password.assert_called_once_with('my_unit_test', 'me')
[all …]
Dtest_metadata.py51 http_request.assert_called_once_with(EXPECTED_URL, **EXPECTED_KWARGS)
60 http_request.assert_called_once_with(EXPECTED_URL, **EXPECTED_KWARGS)
68 http_request.assert_called_once_with(EXPECTED_URL, **EXPECTED_KWARGS)
83 http_request.assert_called_once_with(
87 now.assert_called_once_with()
94 http_request.assert_called_once_with(
Dtest__appengine_ndb.py67 mock_logger.info.assert_called_once_with('validate: Got type %s',
75 mock_logger.info.assert_called_once_with('validate: Got type %s',
84 mock_logger.info.assert_called_once_with('validate: Got type %s',
111 mock_logger.info.assert_called_once_with('validate: Got type %s',
119 mock_logger.info.assert_called_once_with('validate: Got type %s',
128 mock_logger.info.assert_called_once_with('validate: Got type %s',
Dtest_xsrfutil.py60 hmac.new.assert_called_once_with(TEST_KEY)
61 digester.digest.assert_called_once_with()
93 hmac.new.assert_called_once_with(TEST_KEY)
94 time.time.assert_called_once_with()
95 digester.digest.assert_called_once_with()
147 time.time.assert_called_once_with()
176 gen_tok.assert_called_once_with(key, user_id, action_id=action_id,
200 gen_tok.assert_called_once_with(key, user_id, action_id=action_id,
217 gen_tok.assert_called_once_with(key, user_id, action_id=action_id,
/external/chromium-trace/catapult/devil/devil/android/tools/
Dsystem_app_test.py63 mock_device.EnableRoot.assert_called_once_with()
64 mock_device.GetProp.assert_called_once_with(
66 mock_device.SetProp.assert_called_once_with(
72 mock_device.GetProp.assert_called_once_with(
77 mock_device.SetProp.assert_called_once_with(
90 mock_device.RunShellCommand.assert_called_once_with(
103 mock_device.RunShellCommand.assert_called_once_with(
115 mock_device.RunShellCommand.assert_called_once_with(
128 mock_device.RunShellCommand.assert_called_once_with(
/external/python/cpython2/Lib/test/
Dtest_ensurepip.py42 self.run_pip.assert_called_once_with(
56 self.run_pip.assert_called_once_with(
68 self.run_pip.assert_called_once_with(
79 self.run_pip.assert_called_once_with(
90 self.run_pip.assert_called_once_with(
101 self.run_pip.assert_called_once_with(
112 self.run_pip.assert_called_once_with(
190 self.run_pip.assert_called_once_with(
201 self.run_pip.assert_called_once_with(
212 self.run_pip.assert_called_once_with(
[all …]
/external/python/cpython3/Lib/test/
Dtest_ensurepip.py41 self.run_pip.assert_called_once_with(
55 self.run_pip.assert_called_once_with(
67 self.run_pip.assert_called_once_with(
78 self.run_pip.assert_called_once_with(
89 self.run_pip.assert_called_once_with(
100 self.run_pip.assert_called_once_with(
111 self.run_pip.assert_called_once_with(
188 self.run_pip.assert_called_once_with(
199 self.run_pip.assert_called_once_with(
210 self.run_pip.assert_called_once_with(
[all …]
Dtest_getpass.py45 getpw.assert_called_once_with(42)
57 stream.flush.assert_called_once_with()
64 stderr.write.assert_called_once_with(prompt)
70 mock_input.readline.assert_called_once_with()
77 mock_input.readline.assert_called_once_with()
106 open.assert_called_once_with('/dev/tty',
108 fileio.assert_called_once_with(open.return_value, 'w+')
109 textio.assert_called_once_with(fileio.return_value)
134 fallback.assert_called_once_with('Password: ',
157 stdin.readline.assert_called_once_with()
/external/toolchain-utils/llvm_tools/
Dupdate_chromeos_llvm_hash_unittest.py225 mock_islink.assert_called_once_with(symlink_path)
239 mock_islink.assert_called_once_with(symlink_path)
255 mock_realpath.assert_called_once_with(symlink)
299 mock_realpath.assert_called_once_with(symlink)
333 mock_islink.assert_called_once_with(symlink_to_uprev)
375 mock_get_chroot_paths.assert_called_once_with(chroot_path, [package_name])
377 mock_chroot_paths_to_symlinks.assert_called_once_with(
424 mock_get_chroot_paths.assert_called_once_with(chroot_path, [package_name])
426 mock_chroot_paths_to_symlinks.assert_called_once_with(
429 mock_ebuild_paths_from_symlink_paths.assert_called_once_with(
[all …]
Dbisect_clang_crashes_unittest.py43 mock_gsutil_ls.assert_called_once_with(['gsutil.py', 'ls', pattern],
55 mock_file_search.assert_called_once_with('%s/*.c*' % working_dir)
80 mock_file_search.assert_called_once_with('%s/*.c*' % working_dir)
/external/python/oauth2client/tests/
Dtest_tools.py85 self.flow.step2_exchange.assert_called_once_with(
87 self.storage.put.assert_called_once_with(self.credentials)
88 self.credentials.set_store.assert_called_once_with(self.storage)
102 self.flow.step2_exchange.assert_called_once_with(
116 self.flow.step2_exchange.assert_called_once_with(
133 self.flow.step2_exchange.assert_called_once_with(
135 self.storage.put.assert_called_once_with(self.credentials)
136 self.credentials.set_store.assert_called_once_with(self.storage)
138 webbrowser_open_mock.assert_called_once_with(
184 self.flow.step2_exchange.assert_called_once_with(
Dtest_crypt.py92 Verifier.from_string.assert_called_once_with(cert_value,
94 verifier.verify.assert_called_once_with(message, signature)
142 Verifier.from_string.assert_called_once_with(cert_value,
144 verifier.verify.assert_called_once_with(message, signature)
309 verify_sig.assert_called_once_with(
311 verify_time.assert_called_once_with(payload_dict)
312 check_aud.assert_called_once_with(payload_dict, audience)
313 certs.values.assert_called_once_with()
Dtest_client.py172 to_json.assert_called_once_with(
321 from_files.assert_called_once_with()
322 in_gae.assert_called_once_with()
339 in_gce.assert_called_once_with()
340 from_gae.assert_called_once_with()
341 from_files.assert_called_once_with()
402 http_client_module.HTTPConnection.assert_called_once_with(
405 connection.getresponse.assert_called_once_with()
418 response.getheader.assert_called_once_with(
529 isdir_mock.assert_called_once_with(config_dir)
[all …]
/external/toolchain-utils/rust_tools/
Drust_uprev_test.py88 mock_command.assert_called_once_with(['equery', 'w', 'rust'])
126 mock_open.return_value.__enter__().write.assert_called_once_with(
149 mock_open.return_value.__enter__().write.assert_called_once_with(
185 mock_run.assert_called_once_with(['manifest'])
210 mock_open.return_value.__enter__().write.assert_called_once_with(
222 mock_open.return_value.__enter__().write.assert_called_once_with(
247 mock_output.assert_called_once_with(
278 mock_check.assert_called_once_with(
282 mock_output.assert_called_once_with(
284 mock_run.assert_called_once_with(['gpg', '--import'],
[all …]
/external/autotest/server/cros/crosperf/
Ddevice_setup_utils_unittest.py121 self.dut.run.assert_called_once_with(
133 self.dut.run.assert_called_once_with(
136 logging.error.assert_called_once_with(
151 self.dut.run.assert_called_once_with(
154 logging.warning.assert_called_once_with(
170 mock_run_command.assert_called_once_with(self.dut, set_cpu_cmd)
187 mock_run_command.assert_called_once_with(
205 mock_run_command.assert_called_once_with(
225 mock_run_command.assert_called_once_with(
250 mock_run_command.assert_called_once_with(self.dut, set_cpu_cmd)
[all …]
/external/python/mock/mock/tests/
Dtestcallable.py63 mock.assert_called_once_with()
75 mock.assert_called_once_with()
119 mock.assert_called_once_with()
128 instance.assert_called_once_with()
131 result.assert_called_once_with(3, 2, 1)
133 result.foo.assert_called_once_with(3, 2, 1)
150 mock.wibble.assert_called_once_with()
Dtesthelpers.py608 mock.f.assert_called_once_with(1, 2)
611 mock.g.assert_called_once_with(3, 4)
625 mock.f.assert_called_once_with(1, 2)
631 mock.g.f.assert_called_once_with(1, 2)
790 mock.assert_called_once_with(1)
805 mock.assert_called_once_with(1)
806 mock.assert_called_once_with(a=1)
807 self.assertRaises(AssertionError, mock.assert_called_once_with, 2)
839 mock.assert_called_once_with(1, 2)
840 mock.assert_called_once_with(x=1, y=2)
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestcallable.py63 mock.assert_called_once_with()
75 mock.assert_called_once_with()
113 mock.assert_called_once_with()
122 instance.assert_called_once_with()
125 result.assert_called_once_with(3, 2, 1)
127 result.foo.assert_called_once_with(3, 2, 1)
144 mock.wibble.assert_called_once_with()
/external/toolchain-utils/heatmaps/
Dheat_map_test.py99 mock_ensure_file_in_chroot.assert_called_once_with()
100 mock_generate_perf_report.assert_called_once_with()
101 mock_get_heatmap.assert_called_once_with(10)
102 mock_remove_files.assert_called_once_with()
117 mock_ensure_file_in_chroot.assert_called_once_with()
119 mock_remove_files.assert_called_once_with()
/external/autotest/site_utils/stable_images/
Dstable_version_unittest.py98 called_mock.assert_called_once_with(afe, None)
106 called_mock.assert_called_once_with(afe, argv[2])
114 called_mock.assert_called_once_with(afe, None, argv[1])
122 called_mock.assert_called_once_with(afe, argv[2], argv[3])
130 called_mock.assert_called_once_with(afe, argv[2], argv[3],
150 called_mock.assert_called_once_with(afe, argv[2], argv[4], False)
/external/autotest/server/cros/cfm/configurable_test/
Dconfigurable_cfm_test_unittest.py28 cfm_facade_mock.start_meeting_session.assert_called_once_with()
29 cfm_facade_mock.end_meeting_session.assert_called_once_with()
45 cfm_facade_mock.start_meeting_session.assert_called_once_with()
Dactions_unittest.py61 self.host_mock.reboot.assert_called_once_with()
67 self.host_mock.reboot.assert_called_once_with()
69 .assert_called_once_with())
71 .assert_called_once_with())
196 self.metrics_collector_mock.start.assert_called_once_with()
201 self.metrics_collector_mock.stop.assert_called_once_with()
206 self.metrics_collector_mock.upload_metrics.assert_called_once_with()
/external/pigweed/pw_rpc/py/tests/console_tools/
Dconsole_tools_test.py50 self._expiration.assert_called_once_with()
55 self._expiration.assert_called_once_with()
56 self._while_expired.assert_called_once_with()
60 self._expiration.assert_called_once_with()
79 self._reset.assert_called_once_with()

1234