Home
last modified time | relevance | path

Searched refs:StubOutWithMock (Results 1 – 25 of 32) sorted by relevance

12

/external/autotest/frontend/afe/
Dmoblab_rpc_interface_unittest.py50 self.mox.StubOutWithMock(utils, 'is_moblab')
103 self.mox.StubOutWithMock(__builtin__, 'open')
106 self.mox.StubOutWithMock(lsbrelease_utils, 'is_moblab')
147 self.mox.StubOutWithMock(__builtin__, 'open')
181 self.mox.StubOutWithMock(moblab_rpc_interface, '_get_network_info')
183 self.mox.StubOutWithMock(rpc_utils, 'prepare_for_serialization')
196 self.mox.StubOutWithMock(moblab_rpc_interface, '_get_network_info')
198 self.mox.StubOutWithMock(rpc_utils, 'prepare_for_serialization')
211 self.mox.StubOutWithMock(moblab_rpc_interface, '_get_network_info')
213 self.mox.StubOutWithMock(rpc_utils, 'prepare_for_serialization')
[all …]
/external/autotest/site_utils/
Dserver_manager_unittest.py86 self.mox.StubOutWithMock(server_manager_utils, 'check_server')
87 self.mox.StubOutWithMock(server_manager_utils, 'warn_missing_role')
88 self.mox.StubOutWithMock(server_manager_utils, 'use_server_db')
89 self.mox.StubOutWithMock(server_models.Server, 'get_role_names')
90 self.mox.StubOutWithMock(server_models.Server.objects, 'create')
91 self.mox.StubOutWithMock(server_models.Server.objects, 'filter')
92 self.mox.StubOutWithMock(server_models.Server.objects, 'get')
93 self.mox.StubOutWithMock(server_models.ServerRole, 'delete')
94 self.mox.StubOutWithMock(server_models.ServerRole.objects, 'create')
95 self.mox.StubOutWithMock(server_models.ServerRole.objects, 'filter')
[all …]
Dpubsub_utils_unittest.py79 self.mox.StubOutWithMock(os.path, 'isfile')
87 self.mox.StubOutWithMock(os.path, 'isfile')
96 self.mox.StubOutWithMock(os.path, 'isfile')
97 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
109 self.mox.StubOutWithMock(os.path, 'isfile')
110 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
118 self.mox.StubOutWithMock(discovery, 'build')
133 self.mox.StubOutWithMock(os.path, 'isfile')
134 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
142 self.mox.StubOutWithMock(discovery, 'build')
Dtest_push_unittest.py48 self.mox.StubOutWithMock(urllib2, 'urlopen')
51 self.mox.StubOutWithMock(test_push, 'get_default_build')
57 self.mox.StubOutWithMock(test_push, 'check_dut_image')
61 self.mox.StubOutWithMock(test_push, 'do_run_suite')
66 self.mox.StubOutWithMock(site_utils, 'get_test_views_from_tko')
Dtest_runner_utils_unittest.py114 self.mox.StubOutWithMock(os, 'makedirs')
115 self.mox.StubOutWithMock(utils, 'write_keyval')
116 self.mox.StubOutWithMock(subprocess, 'Popen')
191 self.mox.StubOutWithMock(test_runner_utils, 'fetch_local_suite')
198 self.mox.StubOutWithMock(test_runner_utils, 'run_job')
199 self.mox.StubOutWithMock(test_runner_utils, 'run_provisioning_job')
200 self.mox.StubOutWithMock(test_runner_utils, '_auto_detect_labels')
Dcloud_console_client_unittest.py34 self.mox.StubOutWithMock(utils, 'get_moblab_id')
35 self.mox.StubOutWithMock(utils,
70 self.mox.StubOutWithMock(cloud_console_client.PubSubBasedClient,
Dgs_offloader_unittest.py76 self.mox.StubOutWithMock(utils, 'get_offload_gsuri')
94 self.mox.StubOutWithMock(gs_offloader, 'GSOffloader')
95 self.mox.StubOutWithMock(cloud_console_client,
243 self.mox.StubOutWithMock(pubsub_utils, "PubSubClient")
480 self.mox.StubOutWithMock(job_directories._AFE, 'get_jobs')
481 self.mox.StubOutWithMock(job_directories._AFE,
483 self.mox.StubOutWithMock(job_directories._AFE,
789 self.mox.StubOutWithMock(gs_offloader, '_get_cmd_list')
793 self.mox.StubOutWithMock(models.test, 'parse_job_keyval')
801 self.mox.StubOutWithMock(gs_offloader, '_upload_cts_testresult')
[all …]
/external/autotest/client/common_lib/cros/
Dautoupdater_unittest.py46 self.mox.StubOutWithMock(updater.host, 'get_release_version')
55 self.mox.StubOutWithMock(updater.host, 'get_release_version')
64 self.mox.StubOutWithMock(updater.host, 'get_release_version')
72 self.mox.StubOutWithMock(updater.host, 'get_release_version')
97 self.mox.StubOutWithMock(updater.host, 'get_release_version')
106 self.mox.StubOutWithMock(updater.host, 'get_release_version')
115 self.mox.StubOutWithMock(updater.host, 'get_release_version')
123 self.mox.StubOutWithMock(updater.host, 'get_release_version')
148 self.mox.StubOutWithMock(updater.host, 'get_release_version')
157 self.mox.StubOutWithMock(updater.host, 'get_release_version')
[all …]
Ddev_server_unittest.py93 self.mox.StubOutWithMock(urllib2, 'urlopen')
94 self.mox.StubOutWithMock(utils, 'run')
145 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
162 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
180 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
209 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
252 self.mox.StubOutWithMock(dev_server.ImageServerBase, 'run_call')
253 self.mox.StubOutWithMock(urllib2, 'urlopen')
254 self.mox.StubOutWithMock(utils, 'run')
255 self.mox.StubOutWithMock(os.path, 'exists')
[all …]
/external/autotest/server/hosts/
Dtestbed_unittest.py33 self.mox.StubOutWithMock(host, 'get_device_aliases')
35 self.mox.StubOutWithMock(testbed_1, 'get_adb_devices')
57 self.mox.StubOutWithMock(host, 'get_device_aliases')
59 self.mox.StubOutWithMock(testbed_1, 'get_adb_devices')
79 self.mox.StubOutWithMock(host, 'get_device_aliases')
81 self.mox.StubOutWithMock(testbed_1, 'get_adb_devices')
103 self.mox.StubOutWithMock(host, 'get_device_aliases')
105 self.mox.StubOutWithMock(testbed_1, 'get_adb_devices')
125 self.mox.StubOutWithMock(hosts[i], 'get_device_aliases')
128 self.mox.StubOutWithMock(hosts[i], 'get_device_aliases')
[all …]
/external/autotest/site_utils/suite_scheduler/
Dmanifest_versions_unittest.py75 self.mox.StubOutWithMock(self.mv, '_Clone')
76 self.mox.StubOutWithMock(time, 'sleep')
84 self.mox.StubOutWithMock(self.mv, '_Clone')
85 self.mox.StubOutWithMock(time, 'sleep')
98 self.mox.StubOutWithMock(self.mv, '_Clone')
99 self.mox.StubOutWithMock(time, 'sleep')
124 self.mox.StubOutWithMock(self.mv, '_ExpandGlobMinusPrefix')
133 self.mox.StubOutWithMock(manifest_versions, '_SystemOutput')
146 self.mox.StubOutWithMock(manifest_versions, '_SystemOutput')
167 self.mox.StubOutWithMock(manifest_versions, '_SystemOutput')
[all …]
Ddeduping_scheduler_unittest.py47 self.mox.StubOutWithMock(site_utils, 'check_lab_status')
277 self.mox.StubOutWithMock(reporting.Reporter, '__init__')
278 self.mox.StubOutWithMock(reporting.Reporter, '_create_bug_report')
279 self.mox.StubOutWithMock(reporting.Reporter, '_check_tracker')
280 self.mox.StubOutWithMock(reporting.Reporter, '_find_issue_by_marker')
281 self.mox.StubOutWithMock(site_utils, 'get_sheriffs')
Ddriver_unittest.py56 self.mox.StubOutWithMock(timed_event.Nightly, 'CreateFromConfig')
57 self.mox.StubOutWithMock(timed_event.Weekly, 'CreateFromConfig')
58 self.mox.StubOutWithMock(build_event.NewBuild, 'CreateFromConfig')
78 self.mox.StubOutWithMock(task.Task, 'CreateFromConfigSection')
165 self.mox.StubOutWithMock(task.Task, 'CreateFromConfigSection')
/external/autotest/site_utils/rpm_control_system/
Dutils_unittest.py22 self.mox.StubOutWithMock(__builtin__, 'open')
46 self.mox.StubOutWithMock(utils, 'load_servo_interface_mapping')
47 self.mox.StubOutWithMock(os.path, 'getmtime')
106 self.mox.StubOutWithMock(time, 'time')
127 self.mox.StubOutWithMock(time, 'time')
Drpm_controller_unittest.py185 self.mox.StubOutWithMock(pexpect.spawn, '_spawn')
186 self.mox.StubOutWithMock(pexpect.spawn, 'read_nonblocking')
187 self.mox.StubOutWithMock(pexpect.spawn, 'sendline')
222 self.mox.StubOutWithMock(pexpect.spawn, '__str__')
261 self.mox.StubOutWithMock(pexpect.spawn, '__str__')
262 self.mox.StubOutWithMock(rpm_controller.CiscoPOEController,
281 self.mox.StubOutWithMock(pexpect.spawn, '__str__')
282 self.mox.StubOutWithMock(rpm_controller.CiscoPOEController,
284 self.mox.StubOutWithMock(rpm_controller.CiscoPOEController,
/external/autotest/server/cros/dynamic_suite/
Dsuite_unittest.py123 self.mox.StubOutWithMock(control_data, 'parse_control_string')
143 self.mox.StubOutWithMock(control_data, 'parse_control_string')
267 self.mox.StubOutWithMock(SuiteBase, 'find_and_parse_tests')
293 self.mox.StubOutWithMock(suite, '_remember_job_keyval')
369 self.mox.StubOutWithMock(utils, 'write_keyval')
388 self.mox.StubOutWithMock(utils, 'write_keyval')
409 self.mox.StubOutWithMock(utils, 'write_keyval')
431 self.mox.StubOutWithMock(utils, 'write_keyval')
451 self.mox.StubOutWithMock(utils, 'write_keyval')
486 self.mox.StubOutWithMock(utils, 'write_keyval')
[all …]
Dreporting_unittest.py98 self.mox.StubOutWithMock(reporting.Reporter, '_find_issue_by_marker')
99 self.mox.StubOutWithMock(reporting.TestBug, 'summary')
123 self.mox.StubOutWithMock(reporting.Reporter, '_find_issue_by_marker')
124 self.mox.StubOutWithMock(reporting.TestBug, 'summary')
167 self.mox.StubOutWithMock(reporting.Reporter, '_find_issue_by_marker')
168 self.mox.StubOutWithMock(reporting.TestBug, 'summary')
190 self.mox.StubOutWithMock(reporting.Reporter, '_find_issue_by_marker')
Djob_status_unittest.py84 self.mox.StubOutWithMock(time, 'sleep')
141 self.mox.StubOutWithMock(time, 'sleep')
Dtools_unittest.py109 self.mox.StubOutWithMock(tools, 'infrastructure_user')
/external/autotest/client/common_lib/cros/fake_device_server/
Dregistration_tickets_unittest.py68 self.mox.StubOutWithMock(common_util, 'parse_serialized_json')
70 self.mox.StubOutWithMock(common_util, 'grab_header_field')
96 self.mox.StubOutWithMock(common_util, 'parse_serialized_json')
111 self.mox.StubOutWithMock(common_util, 'parse_serialized_json')
Dresource_method_unittest.py36 self.mox.StubOutWithMock(common_util, 'parse_serialized_json')
51 self.mox.StubOutWithMock(common_util, 'parse_serialized_json')
/external/autotest/server/
Dlab_status_unittest.py119 self.mox.StubOutWithMock(urllib2, 'urlopen')
120 self.mox.StubOutWithMock(time, 'sleep')
301 self.mox.StubOutWithMock(global_config.global_config,
303 self.mox.StubOutWithMock(site_utils, '_get_lab_status')
/external/autotest/client/cros/cellular/wardmodem/
Dat_transceiver_unittest.py294 self._mox.StubOutWithMock(self._at_transceiver,
340 self._mox.StubOutWithMock(self._at_transceiver,
408 self._mox.StubOutWithMock(self._at_transceiver,
460 self._mox.StubOutWithMock(self._at_transceiver,
482 self._mox.StubOutWithMock(self._at_transceiver,
/external/autotest/server/cros/
Dhost_lock_manager_unittest.py181 self.mox.StubOutWithMock(self.manager, '_check_host')
198 self.mox.StubOutWithMock(self.manager, '_check_host')
213 self.mox.StubOutWithMock(self.manager, '_check_host')
/external/autotest/site_utils/sponge_lib/
Dsponge_utils_functional_test.py103 self.mox.StubOutWithMock(models.test, 'parse_job_keyval')

12