Home
last modified time | relevance | path

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

123

/external/chromium-trace/catapult/devil/devil/android/perf/
Dperf_control_test.py55 mock_device.EnableRoot.assert_called_once_with()
56 pc._ForceAllCpusOnline.assert_called_once_with(True)
57 pc.SetScalingGovernor.assert_called_once_with('performance')
58 pc._SetScalingMaxFreqForCpus.assert_called_once_with(
60 pc._SetMaxGpuClock.assert_called_once_with(200000000)
78 mock_device.EnableRoot.assert_called_once_with()
79 pc._ForceAllCpusOnline.assert_called_once_with(True)
80 pc.SetScalingGovernor.assert_called_once_with('performance')
81 pc._SetScalingMaxFreqForCpus.assert_called_once_with(
83 pc._SetMaxGpuClock.assert_called_once_with(300000000)
[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_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,
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_devshell.py81 os_mod.getenv.assert_called_once_with(devshell.DEVSHELL_ENV, 0)
99 os_mod.getenv.assert_called_once_with(devshell.DEVSHELL_ENV, 0)
100 socket.socket.assert_called_once_with()
101 sock.recv(6).decode.assert_called_once_with()
222 utcnow.assert_called_once_with()
/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/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/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/python/mock/mock/tests/
Dtestcallable.py63 mock.assert_called_once_with()
75 mock.assert_called_once_with()
121 mock.assert_called_once_with()
130 instance.assert_called_once_with()
133 result.assert_called_once_with(3, 2, 1)
135 result.foo.assert_called_once_with(3, 2, 1)
152 mock.wibble.assert_called_once_with()
Dtesthelpers.py555 mock.f.assert_called_once_with(1, 2)
558 mock.g.assert_called_once_with(3, 4)
573 mock.f.assert_called_once_with(1, 2)
579 mock.g.f.assert_called_once_with(1, 2)
742 mock.assert_called_once_with(1)
758 mock.assert_called_once_with(1)
759 mock.assert_called_once_with(a=1)
760 self.assertRaises(AssertionError, mock.assert_called_once_with, 2)
794 mock.assert_called_once_with(1, 2)
795 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()
114 mock.assert_called_once_with()
123 instance.assert_called_once_with()
126 result.assert_called_once_with(3, 2, 1)
128 result.foo.assert_called_once_with(3, 2, 1)
145 mock.wibble.assert_called_once_with()
Dtesthelpers.py574 mock.f.assert_called_once_with(1, 2)
577 mock.g.assert_called_once_with(3, 4)
739 mock.assert_called_once_with(1)
740 mock.assert_called_once_with(a=1)
741 self.assertRaises(AssertionError, mock.assert_called_once_with, 2)
766 mock.assert_called_once_with(1, 2)
767 mock.assert_called_once_with(x=1, y=2)
773 instance.assert_called_once_with('a')
774 instance.assert_called_once_with(a='a')
781 mock.assert_called_once_with(a='a')
[all …]
/external/chromium-trace/catapult/devil/devil/android/tools/
Dsystem_app_test.py50 mock_device.EnableRoot.assert_called_once_with()
51 mock_device.GetProp.assert_called_once_with(
53 mock_device.SetProp.assert_called_once_with(
59 mock_device.GetProp.assert_called_once_with(
64 mock_device.SetProp.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/site_utils/deployment/
Dinstall_unittest.py85 afe_mock.cros_version_map.set_version.assert_called_once_with(
87 afe_mock.fw_version_map.set_version.assert_called_once_with(
117 afe_mock.cros_version_map.set_version.assert_called_once_with(
131 afe_mock.cros_version_map.set_version.assert_called_once_with(
133 afe_mock.fw_version_map.set_version.assert_called_once_with(
149 afe_mock.cros_version_map.set_version.assert_called_once_with(
/external/autotest/scheduler/
Dscheduler_lib_unittest.py41 connection_manager.open_connection.assert_called_once_with()
51 connection_manager.disconnect.assert_called_once_with()
74 readonly_connection.set_globally_disabled.assert_called_once_with(True)
75 setup_django_environment.enable_autocommit.assert_called_once_with()
/external/autotest/server/cros/cfm/configurable_test/
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()
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()
/external/autotest/venv/lucifer/
Dautotest_unittest.py52 import_module.assert_called_once_with(expected)
71 import_module.assert_called_once_with(expected)
83 import_module.assert_called_once_with(name)
Dloglib_unittest.py25 dictConfig.assert_called_once_with(mock.ANY)
35 configure.assert_called_once_with(name='unittest')
/external/chromium-trace/catapult/devil/devil/android/
Dmd5sum_test.py52 mock_get_cmd_output.assert_called_once_with(
70 mock_get_cmd_output.assert_called_once_with(
89 mock_get_cmd_output.assert_called_once_with(
231 device.adb.Push.assert_called_once_with(

123