Home
last modified time | relevance | path

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

/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 …]
Drpc_interface_unittest.py126 self.mox.StubOutWithMock(models.Host, '_assign_to_shard_nothing_helper')
226 self.mox.StubOutWithMock(server_utils, 'read_file')
1436 self.mox.StubOutWithMock(control_file_getter.DevServerGetter,
1454 self.mox.StubOutWithMock(rpc_utils, 'create_job_common')
/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.py82 self.mox.StubOutWithMock(os.path, 'isfile')
90 self.mox.StubOutWithMock(os.path, 'isfile')
99 self.mox.StubOutWithMock(os.path, 'isfile')
100 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
112 self.mox.StubOutWithMock(os.path, 'isfile')
113 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
121 self.mox.StubOutWithMock(discovery, 'build')
136 self.mox.StubOutWithMock(os.path, 'isfile')
137 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
145 self.mox.StubOutWithMock(discovery, 'build')
Dcloud_console_client_unittest.py35 self.mox.StubOutWithMock(utils,
39 self.mox.StubOutWithMock(utils, 'get_moblab_id')
69 self.mox.StubOutWithMock(cloud_console_client.PubSubBasedClient,
88 self.mox.StubOutWithMock(utils, 'get_moblab_id')
109 self.mox.StubOutWithMock(utils, 'get_moblab_id')
Dtest_push_unittest.py51 self.mox.StubOutWithMock(urllib.request, 'urlopen')
54 self.mox.StubOutWithMock(test_push, 'check_dut_image')
58 self.mox.StubOutWithMock(test_push, 'do_run_suite')
63 self.mox.StubOutWithMock(site_utils, 'get_test_views_from_tko')
Dtest_runner_utils_unittest.py99 self.mox.StubOutWithMock(test_runner_utils.LocalSuite,
122 self.mox.StubOutWithMock(test_runner_utils.LocalSuite,
231 self.mox.StubOutWithMock(test_runner_utils, 'fetch_local_suite')
239 self.mox.StubOutWithMock(test_runner_utils, 'run_job')
240 self.mox.StubOutWithMock(test_runner_utils, 'run_provisioning_job')
241 self.mox.StubOutWithMock(test_runner_utils, '_auto_detect_labels')
Dgs_offloader_unittest.py94 self.mox.StubOutWithMock(utils, 'get_offload_gsuri')
112 self.mox.StubOutWithMock(gs_offloader, 'GSOffloader')
114 self.mox.StubOutWithMock(cloud_console_client,
265 self.mox.StubOutWithMock(pubsub_utils, "PubSubClient")
577 self.mox.StubOutWithMock(gs_offloader, '_get_cmd_list')
581 self.mox.StubOutWithMock(models.test, 'parse_job_keyval')
590 self.mox.StubOutWithMock(gs_offloader, '_upload_cts_testresult')
595 self.mox.StubOutWithMock(__builtin__, 'open')
609 self.mox.StubOutWithMock(os.path, 'isfile')
924 self.mox.StubOutWithMock(gs_offloader, '_upload_files')
[all …]
Djob_directories_unittest.py95 self.mox.StubOutWithMock(job_directories, '_AFE')
/external/autotest/client/common_lib/cros/
Ddev_server_unittest.py91 self.mox.StubOutWithMock(urllib.request, 'urlopen')
92 self.mox.StubOutWithMock(utils, 'run')
124 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
185 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
202 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
220 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
249 self.mox.StubOutWithMock(utils, 'get_restricted_subnet')
292 self.mox.StubOutWithMock(dev_server.ImageServerBase, 'run_call')
293 self.mox.StubOutWithMock(urllib.request, 'urlopen')
294 self.mox.StubOutWithMock(utils, 'run')
[all …]
/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.py188 self.mox.StubOutWithMock(sut, '_login')
190 self.mox.StubOutWithMock(sut, '_verify_state')
215 self.mox.StubOutWithMock(sut, '_login')
234 self.mox.StubOutWithMock(sut, '_login')
235 self.mox.StubOutWithMock(sut, '_enter_configuration_terminal')
252 self.mox.StubOutWithMock(sut, '_login')
253 self.mox.StubOutWithMock(sut, '_enter_configuration_terminal')
254 self.mox.StubOutWithMock(sut, '_exit_configuration_terminal')
/external/autotest/server/cros/dynamic_suite/
Dsuite_unittest.py131 self.mox.StubOutWithMock(control_data, 'parse_control_string')
133 self.mox.StubOutWithMock(suite_common.multiprocessing, 'Pool')
156 self.mox.StubOutWithMock(control_data, 'parse_control_string')
158 self.mox.StubOutWithMock(suite_common.multiprocessing, 'Pool')
286 self.mox.StubOutWithMock(SuiteBase, 'find_and_parse_tests')
312 self.mox.StubOutWithMock(suite, '_remember_job_keyval')
389 self.mox.StubOutWithMock(utils, 'write_keyval')
408 self.mox.StubOutWithMock(utils, 'write_keyval')
429 self.mox.StubOutWithMock(utils, 'write_keyval')
451 self.mox.StubOutWithMock(utils, 'write_keyval')
[all …]
Dtools_unittest.py115 self.mox.StubOutWithMock(tools, 'infrastructure_user')
Djob_status_unittest.py92 self.mox.StubOutWithMock(time, 'sleep')
/external/autotest/server/
Dlab_status_unittest.py125 self.mox.StubOutWithMock(urllib.request, 'urlopen')
126 self.mox.StubOutWithMock(time, 'sleep')
307 self.mox.StubOutWithMock(global_config.global_config,
309 self.mox.StubOutWithMock(site_utils, '_get_lab_status')
/external/autotest/site_utils/lxc/
Dcontainer_bucket_unittest.py20 self.mox.StubOutWithMock(utils, 'run')
/external/autotest/site_utils/sponge_lib/
Dsponge_utils_functional_test.py103 self.mox.StubOutWithMock(models.test, 'parse_job_keyval')
/external/autotest/client/common_lib/
Dglobal_config_unittest.py129 self.mox.StubOutWithMock(lsbrelease_utils, 'is_moblab')
/external/autotest/tko/
Dsite_parse_unittest.py215 self.mox.StubOutWithMock(tko_db.db_sql, 'connect')
/external/protobuf/python/
Dmox.py208 def StubOutWithMock(self, obj, attr_name, use_mock_anything=False): member in Mox